summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2021-03-04 13:15:33 +0100
committer Olivier Galibert <galibert@pobox.com>2021-03-04 13:15:56 +0100
commit606be5dbc35551bbef4232b526bc2187e0541a87 (patch)
tree63289f2435f646c2cd267584ac1bfed955944eab
parentd65c5159f16d942fccc3c0420ed166e5fe85b64f (diff)
mac128: Only adjust the rpm on drives which use the PWM
-rw-r--r--src/mame/drivers/mac128.cpp5
1 files 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]);
}
}