From 0711a2b391362dc86d4d40044ac2abb416059f15 Mon Sep 17 00:00:00 2001 From: "Ralph A. Schmid" Date: Tue, 15 Oct 2019 12:24:58 +0200 Subject: [PATCH] Fix issue in DMRLC.cpp The position of the OVCM bit was counted from the wrong end of the byte - fixed this (DK5MP and me had the same issue when we made our first OVCM tests)... --- DMRLC.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DMRLC.cpp b/DMRLC.cpp index 21d6b2a..632cfa7 100644 --- a/DMRLC.cpp +++ b/DMRLC.cpp @@ -186,15 +186,15 @@ void CDMRLC::setFID(unsigned char fid) bool CDMRLC::getOVCM() const { - return (m_options & 0x20U) == 0x20U; + return (m_options & 0x04U) == 0x04U; } void CDMRLC::setOVCM(bool ovcm) { if (ovcm) - m_options |= 0x20U; + m_options |= 0x04U; else - m_options &= 0xDFU; + m_options &= 0xFBU; } unsigned int CDMRLC::getSrcId() const