summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/i8251.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/i8251.cpp')
-rw-r--r--src/devices/machine/i8251.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/machine/i8251.cpp b/src/devices/machine/i8251.cpp
index b1359309f0c..b63dc58f804 100644
--- a/src/devices/machine/i8251.cpp
+++ b/src/devices/machine/i8251.cpp
@@ -549,7 +549,7 @@ void i8251_device::mode_w(uint8_t data)
/* setup for sync byte(s) */
m_flags |= I8251_EXPECTING_SYNC_BYTE;
m_sync_byte_offset = 0;
- if (data & 0x07)
+ if (BIT(data, 7))
{
m_sync_byte_count = 1;
}