mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-22 16:25:45 +08:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user