summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/ay31015.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-03-23 21:02:00 -0400
committer AJR <ajrhacker@users.noreply.github.com>2018-03-23 21:02:07 -0400
commit42adc3edf75ed736a4deeaff1c1a5a656339441b (patch)
treec4b5148d942de6e29e0c1ae06fefca5f25efec27 /src/devices/machine/ay31015.cpp
parentde1c3df72243c66c86981c056c1a2be4db6d64fa (diff)
ay31015: Fix receiver synchronization at start bit
Diffstat (limited to 'src/devices/machine/ay31015.cpp')
-rw-r--r--src/devices/machine/ay31015.cpp5
1 files 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;