From: Nikolay Nikolov Date: Sun, 4 Feb 2018 15:27:00 +0000 (+0200) Subject: floppy: Reset the floppy motor count in floppy_drive_pio() X-Git-Tag: rel-1.12.0~43 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=488ede2297461af9d60dd21cff853a49afdc2c70;p=people%2Fandrewcoop%2Fseabios.git floppy: Reset the floppy motor count in floppy_drive_pio() Reset the floppy motor count, so the motor keeps spinning 2 seconds after a floppy operation, performed by floppy_drive_pio(). Signed-off-by: Nikolay Nikolov --- diff --git a/src/hw/floppy.c b/src/hw/floppy.c index 573c45f..77dbade 100644 --- a/src/hw/floppy.c +++ b/src/hw/floppy.c @@ -356,6 +356,7 @@ floppy_drive_pio(u8 floppyid, int command, u8 *param) // Send command. int ret = floppy_pio(command, param); + SET_BDA(floppy_motor_counter, FLOPPY_MOTOR_TICKS); // reset motor timeout if (ret) return ret;