summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/pit8253.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/pit8253.cpp')
-rw-r--r--src/devices/machine/pit8253.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/devices/machine/pit8253.cpp b/src/devices/machine/pit8253.cpp
index ddf63ff00fb..d62af500f9d 100644
--- a/src/devices/machine/pit8253.cpp
+++ b/src/devices/machine/pit8253.cpp
@@ -1067,9 +1067,11 @@ void pit_counter_device::set_clockin(double new_clockin)
{
LOG2("set_clockin(): clockin = %f\n", new_clockin);
- update();
+ if (started())
+ update();
m_clockin = new_clockin;
- update();
+ if (started())
+ update();
}