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)...
This commit is contained in:
Ralph A. Schmid 2019-10-15 12:24:58 +02:00 committed by GitHub
parent 6bababeb96
commit 0711a2b391
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -186,15 +186,15 @@ void CDMRLC::setFID(unsigned char fid)
bool CDMRLC::getOVCM() const bool CDMRLC::getOVCM() const
{ {
return (m_options & 0x20U) == 0x20U; return (m_options & 0x04U) == 0x04U;
} }
void CDMRLC::setOVCM(bool ovcm) void CDMRLC::setOVCM(bool ovcm)
{ {
if (ovcm) if (ovcm)
m_options |= 0x20U; m_options |= 0x04U;
else else
m_options &= 0xDFU; m_options &= 0xFBU;
} }
unsigned int CDMRLC::getSrcId() const unsigned int CDMRLC::getSrcId() const