From 42adc3edf75ed736a4deeaff1c1a5a656339441b Mon Sep 17 00:00:00 2001 From: AJR Date: Fri, 23 Mar 2018 21:02:00 -0400 Subject: ay31015: Fix receiver synchronization at start bit --- src/devices/machine/ay31015.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/devices/machine/ay31015.cpp b/src/devices/machine/ay31015.cpp index df122a498a3..7ff281eb1a0 100644 --- a/src/devices/machine/ay31015.cpp +++ b/src/devices/machine/ay31015.cpp @@ -303,7 +303,7 @@ void ay31015_device::rx_process() if (!get_si()) { m_rx_state = START_BIT; - m_rx_pulses = 16; + m_rx_pulses = 15; } return; @@ -316,11 +316,12 @@ void ay31015_device::rx_process() LOG("Receive false start bit\n"); m_rx_state = IDLE; } + else + LOG("Receive start bit\n"); } else if (!m_rx_pulses) // end of start bit { - LOG("Receive start bit\n"); m_rx_state = PROCESSING; m_rx_pulses = m_total_pulses; m_rx_bit_count = 0; -- cgit v1.2.3