hp9k_3xx: fix RTC corruption

pre-init the latch clock variable to 1, so the first write to the latch
doesn't cause invalid data latched which would trigger an invalid write to
the RTC, causing an invalid time.
This commit is contained in:
Sven Schnelle 2018-11-06 20:46:04 +01:00
parent a4c222b805
commit 156ea08447

View File

@ -138,6 +138,7 @@ void human_interface_device::device_reset()
m_ppoll_sc = 0;
m_gpib_irq_line = false;
m_kbd_nmi = false;
m_old_latch_enable = true;
m_rtc->cs1_w(ASSERT_LINE);
m_rtc->cs2_w(CLEAR_LINE);
m_rtc->write_w(CLEAR_LINE);