Merge pull request #525 from dk5ras/dk5ras-OVCM-patch-1

Fix issue in DMRLC.cpp
This commit is contained in:
Jonathan Naylor
2019-10-15 12:14:37 +01:00
committed by GitHub

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