From c0e8eb59285b876114e23ff8d81bcb3e9b436586 Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Mon, 22 Feb 2021 08:27:33 +0100 Subject: [PATCH] iwm: Finish the fix, sorry about the mistake --- src/devices/machine/iwm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/machine/iwm.cpp b/src/devices/machine/iwm.cpp index 88aed1cda7a..312d381717d 100644 --- a/src/devices/machine/iwm.cpp +++ b/src/devices/machine/iwm.cpp @@ -465,7 +465,7 @@ void iwm_device::sync() case SW_WINDOW_LOAD: if(m_whd & 0x80) { logerror("underrun\n"); - flush_write(); + flush_write(next_sync); m_flux_write_start = 0; m_whd &= ~0x40; m_last_sync = next_sync; @@ -490,7 +490,7 @@ void iwm_device::sync() case SW_WINDOW_END: if(m_flux_write_count == m_flux_write.size()) - flush_write(); + flush_write(next_sync); if(m_mode & 0x02) { m_rw_bit_count --; if(m_rw_bit_count == 0) {