wd_fdc: Don't switch off the motor when the fdc doesn't have a motor control pin [O. Galibert, Duke]

This commit is contained in:
Olivier Galibert 2013-08-08 10:29:08 +00:00
parent f723b4557c
commit 5a38dc64c8

View File

@ -121,7 +121,8 @@ void wd_fdc_t::set_floppy(floppy_image_device *_floppy)
int prev_ready = floppy ? floppy->ready_r() : 1;
if(floppy) {
floppy->mon_w(1);
if(motor_control)
floppy->mon_w(1);
floppy->setup_index_pulse_cb(floppy_image_device::index_pulse_cb());
floppy->setup_ready_cb(floppy_image_device::ready_cb());
}