possible fix

This commit is contained in:
Patrick Maier
2019-10-18 20:13:08 +02:00
parent 1ed79d01c0
commit 529fdf88eb

View File

@@ -155,7 +155,7 @@ bool CDMRCSBK::getOVCM() const
// Service options informations are only available in // Service options informations are only available in
// "Unit to Unit Voice Service Request CSBK" and // "Unit to Unit Voice Service Request CSBK" and
// "Unit to Unit Voice Service Answer Response CSBK" // "Unit to Unit Voice Service Answer Response CSBK"
if (m_CSBKO == CSBKO_UUVREQ || m_CSBKO == CSBKO_UUANSRSP) if ((m_CSBKO == CSBKO_UUVREQ) || (m_CSBKO == CSBKO_UUANSRSP))
{ {
bOVCM = (m_data[2U] & 0x04U) == 0x04U; bOVCM = (m_data[2U] & 0x04U) == 0x04U;
} }
@@ -165,7 +165,7 @@ bool CDMRCSBK::getOVCM() const
void CDMRCSBK::setOVCM(bool ovcm) void CDMRCSBK::setOVCM(bool ovcm)
{ {
// Set OVCM only in CSBKs having the service options information // Set OVCM only in CSBKs having the service options information
if (m_CSBKO == CSBKO_UUVREQ || m_CSBKO == CSBKO_UUANSRSP) if ((m_CSBKO == CSBKO_UUVREQ) || (m_CSBKO == CSBKO_UUANSRSP))
{ {
if (ovcm) if (ovcm)
m_data[2U] |= 0x04U; m_data[2U] |= 0x04U;