diff options
author | smf- <smf-@users.noreply.github.com> | 2018-07-08 11:33:14 +0100 |
---|---|---|
committer | smf- <smf-@users.noreply.github.com> | 2018-07-08 11:33:14 +0100 |
commit | 0bbb5496ba4a0d49d9345a018aa21dee61864ee5 (patch) | |
tree | 81a381c120c32c65f4f39b5d01872eadb6127020 | |
parent | fa05df5922bdb9465e77d70c8513d325041c9add (diff) |
There is no reset input, so resetting the status of the variable tracking the external signal makes no sense. However we should probably restart the timer on all resets (instead of just at start/watchdog timeout), to avoid a watchdog reset if you press F3 at the wrong time (nw)
-rw-r--r-- | src/devices/machine/mb3773.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/devices/machine/mb3773.cpp b/src/devices/machine/mb3773.cpp index d3ffae80469..948fdd7a75e 100644 --- a/src/devices/machine/mb3773.cpp +++ b/src/devices/machine/mb3773.cpp @@ -42,7 +42,6 @@ mb3773_device::mb3773_device( const machine_config &mconfig, const char *tag, de void mb3773_device::device_start() { m_watchdog_timer = timer_alloc(); - reset_timer(); save_item( NAME(m_ck) ); } @@ -54,7 +53,7 @@ void mb3773_device::device_start() void mb3773_device::device_reset() { - m_ck = 0; + reset_timer(); } void mb3773_device::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) @@ -66,8 +65,6 @@ void mb3773_device::device_timer(emu_timer &timer, device_timer_id id, int param #else machine().schedule_soft_reset(); #endif - - reset_timer(); } void mb3773_device::reset_timer() |