summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorGravatarGravatar smf- <smf-@users.noreply.github.com>2014-01-10 13:49:37 +0000
committerGravatarGravatar smf- <smf-@users.noreply.github.com>2014-01-10 13:49:37 +0000
commite7563a244ccf14038e718715258dccd9b6650933 (patch)
treeb155d02e112c65a93b86a48b21cccb9e9e485334 /src
parent6b25cfe5a89842b099e1ae7f6f3de3a7e70a7ce0 (diff)
call set_data_frame() before calling set_rcv_rate() as otherwise it acccesses m_synchronous before it is set leading to random behaviour [smf]
Diffstat (limited to 'src')
-rw-r--r--src/mess/machine/terminal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mess/machine/terminal.c b/src/mess/machine/terminal.c
index dd56089d723..cd8fdeb1cf1 100644
--- a/src/mess/machine/terminal.c
+++ b/src/mess/machine/terminal.c
@@ -501,9 +501,9 @@ WRITE_LINE_MEMBER(serial_terminal_device::update_serial)
UINT8 parity = m_io_term_parity->read();
UINT8 stopbits = m_io_term_stopbits->read();
+ set_data_frame(m_databits[databits], m_stopbits[stopbits], m_parity[parity], false);
set_tra_rate(m_baud[baud]);
set_rcv_rate(m_baud[baud]);
- set_data_frame(m_databits[databits], m_stopbits[stopbits], m_parity[parity], false);
}
void serial_terminal_device::device_reset()