From 606be5dbc35551bbef4232b526bc2187e0541a87 Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Thu, 4 Mar 2021 13:15:33 +0100 Subject: mac128: Only adjust the rpm on drives which use the PWM --- src/mame/drivers/mac128.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mame/drivers/mac128.cpp b/src/mame/drivers/mac128.cpp index c69e2402b31..c82a41e7448 100644 --- a/src/mame/drivers/mac128.cpp +++ b/src/mame/drivers/mac128.cpp @@ -588,7 +588,7 @@ void mac128_state::pwm_push(uint8_t data) logerror("PWM index %3d duty cycle %5.1f%% rpm %f\n", internal_index, 100*duty_cycle, rpm); #if NEW_IWM - if (m_cur_floppy) + if (m_cur_floppy && m_cur_floppy->type() == OAD34V) { m_iwm->sync(); m_cur_floppy->set_rpm(rpm); @@ -995,7 +995,8 @@ void mac128_state::devsel_w(uint8_t devsel) if (m_cur_floppy) { m_cur_floppy->ss_w(m_hdsel); - m_cur_floppy->set_rpm(m_pwm_current_rpm[1]); + if (m_cur_floppy->type() == OAD34V) + m_cur_floppy->set_rpm(m_pwm_current_rpm[1]); } } -- cgit v1.2.3