mirror of
https://github.com/holub/mame
synced 2025-04-25 09:50:04 +03:00
diserial: Make received parity consistent with transmitted parity (nw)
This commit is contained in:
parent
5c265dc43f
commit
7b8cc2fd8e
@ -315,12 +315,12 @@ void device_serial_interface::receive_register_extract()
|
||||
switch (m_df_parity)
|
||||
{
|
||||
case PARITY_ODD:
|
||||
if (parity_received != serial_helper_get_parity(data))
|
||||
if (parity_received == serial_helper_get_parity(data))
|
||||
m_rcv_parity_error = true;
|
||||
break;
|
||||
|
||||
case PARITY_EVEN:
|
||||
if (parity_received == serial_helper_get_parity(data))
|
||||
if (parity_received != serial_helper_get_parity(data))
|
||||
m_rcv_parity_error = true;
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user