floppy: Minor - add warnings if timeouts occur.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
diff --git a/src/hw/floppy.c b/src/hw/floppy.c
index e73b303..d43b489 100644
--- a/src/hw/floppy.c
+++ b/src/hw/floppy.c
@@ -193,6 +193,7 @@
SET_BDA(floppy_recalibration_status, frs & ~FRS_IRQ);
for (;;) {
if (!GET_BDA(floppy_motor_counter)) {
+ warn_timeout();
floppy_disable_controller();
return DISK_RET_ETIMEOUT;
}
@@ -225,6 +226,7 @@
u8 sts = inb(PORT_FD_STATUS);
if (!(sts & 0x80)) {
if (timer_check(end)) {
+ warn_timeout();
floppy_disable_controller();
return DISK_RET_ETIMEOUT;
}
@@ -253,6 +255,7 @@
u8 sts = inb(PORT_FD_STATUS);
if (!(sts & 0x80)) {
if (timer_check(end)) {
+ warn_timeout();
floppy_disable_controller();
return DISK_RET_ETIMEOUT;
}