summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/sdlc.cpp
diff options
context:
space:
mode:
author Firehawke <Firehawke@users.noreply.github.com>2017-12-13 20:52:42 -0700
committer Firehawke <Firehawke@users.noreply.github.com>2017-12-13 20:52:42 -0700
commitf537428e5a40ba6dde8ca9bf0fe9ae6b1f189ac4 (patch)
tree7160ed8d2cbe2127aaaef0a21f8736403b0f8a7c /src/devices/machine/sdlc.cpp
parent0d70d798107d4e4e8fb9f230410aeb1e888d65c5 (diff)
parent6379bf581489df72694b1c42cc7436ca0f1d89b2 (diff)
Merge branch 'master' of https://github.com/mamedev/mame
Diffstat (limited to 'src/devices/machine/sdlc.cpp')
-rw-r--r--src/devices/machine/sdlc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/machine/sdlc.cpp b/src/devices/machine/sdlc.cpp
index e3cc8cc99ed..870f8aba4e3 100644
--- a/src/devices/machine/sdlc.cpp
+++ b/src/devices/machine/sdlc.cpp
@@ -282,7 +282,7 @@ void sdlc_logger_device::log_frame(bool partial) const
fcs |= std::uint16_t(m_buffer[frame_bytes - 1]) << (8 - residual_bits);
if (residual_bits)
fcs |= (std::uint16_t(m_buffer[frame_bytes]) & ((1U << residual_bits) - 1U)) << (16 - residual_bits);
- fcs = ~BITSWAP16(fcs, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
+ fcs = ~bitswap<16>(fcs, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
util::stream_format(msg, " FCS=%04X", fcs);
if (!is_frame_check_good())
util::stream_format(msg, " (expected %04X)", m_expected_fcs);