Pro Audio Spectrum 16: Do not enable the timeout watchdog timer if (val & 0x3f) is zero, fixes some hangs.

This commit is contained in:
OBattler
2024-07-29 19:10:43 +02:00
parent 9135083877
commit 36386ac7f4

View File

@@ -1504,7 +1504,8 @@ pas16_out(uint16_t port, uint8_t val, void *priv)
pas16->timeout_count = val;
if (timer_is_enabled(&pas16->scsi_timer))
timer_disable(&pas16->scsi_timer);
timer_set_delay_u64(&pas16->scsi_timer, (val & 0x3f) * PASSCSICONST);
if ((val & 0x3f) > 0x00)
timer_set_delay_u64(&pas16->scsi_timer, (val & 0x3f) * PASSCSICONST);
}
break;