summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/imagedev
diff options
context:
space:
mode:
author Curt Coder <curtcoder@mail.com>2017-10-12 08:10:31 +0300
committer Curt Coder <curtcoder@mail.com>2017-10-12 08:23:27 +0300
commit6fd8297639283cf88dc54e349cd2992e023df313 (patch)
treefe19deb4ab4cb39d77ef0a2e23eaa9593416318d /src/devices/imagedev
parent9620f3741c09f07fb084294889fbba79349ee63c (diff)
floppy.h: Don't change sides if the drive has only one head. (nw)
Diffstat (limited to 'src/devices/imagedev')
-rw-r--r--src/devices/imagedev/floppy.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/imagedev/floppy.h b/src/devices/imagedev/floppy.h
index 5954e72883f..d30b338c6e9 100644
--- a/src/devices/imagedev/floppy.h
+++ b/src/devices/imagedev/floppy.h
@@ -131,7 +131,7 @@ public:
void seek_phase_w(int phases);
void stp_w(int state);
void dir_w(int state) { dir = state; }
- void ss_w(int state) { ss = state; }
+ void ss_w(int state) { if (sides > 1) ss = state; }
void inuse_w(int state) { }
void dskchg_w(int state) { if (dskchg_writable) dskchg = state; }
void ds_w(int state) { ds = state; check_led(); }