From 6fd8297639283cf88dc54e349cd2992e023df313 Mon Sep 17 00:00:00 2001 From: Curt Coder Date: Thu, 12 Oct 2017 08:10:31 +0300 Subject: [PATCH] floppy.h: Don't change sides if the drive has only one head. (nw) --- src/devices/imagedev/floppy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }