summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/clock.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/clock.h')
-rw-r--r--src/devices/machine/clock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/machine/clock.h b/src/devices/machine/clock.h
index 7e2fe1925a6..176f823d738 100644
--- a/src/devices/machine/clock.h
+++ b/src/devices/machine/clock.h
@@ -19,7 +19,7 @@ public:
auto signal_handler() { return m_signal_handler.bind(); }
auto &set_period(attotime period) { m_period = period; reinit(); return *this; }
auto &set_pulse_width(attotime pw) { assert(!pw.is_never()); m_pw = pw; reinit(); return *this; }
- auto &set_duty_cycle(double duty) { assert(duty > 0.0 && duty < 1.0); m_duty = duty; m_pw = attotime::never; reinit(); return *this; }
+ auto &set_duty_cycle(double duty) { assert(duty >= 0.0 && duty <= 1.0); m_duty = duty; m_pw = attotime::never; reinit(); return *this; }
DECLARE_READ_LINE_MEMBER(signal_r) { return m_signal; }