mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-20 22:45:44 +08:00
Fix reported compilation errors.
This commit is contained in:
@@ -511,8 +511,8 @@ void CNXDNAudio::decode(const unsigned char* in, unsigned char* out, unsigned in
|
||||
unsigned int aPos = i + 0U;
|
||||
unsigned int bPos = i + 12U;
|
||||
|
||||
WRITE_BIT(out, aPos, a & MASK);
|
||||
WRITE_BIT(out, bPos, b & MASK);
|
||||
WRITE_BIT(out, aPos, data & MASK);
|
||||
WRITE_BIT(out, bPos, datb & MASK);
|
||||
|
||||
MASK >>= 1;
|
||||
}
|
||||
|
||||
@@ -770,9 +770,9 @@ void CNXDNControl::writeNetwork()
|
||||
m_netLayer3.setData(netData + 5U + 0U, 10U);
|
||||
|
||||
unsigned char type = m_netLayer3.getMessageType();
|
||||
if (type == NXDN_MESSAGE_TYPE_TX_REL && m_netState == RS_RF_LISTENING)
|
||||
if (type == NXDN_MESSAGE_TYPE_TX_REL && m_netState == RS_NET_IDLE)
|
||||
return;
|
||||
if (type == NXDN_MESSAGE_TYPE_VCALL && m_netState != RS_RF_LISTENING)
|
||||
if (type == NXDN_MESSAGE_TYPE_VCALL && m_netState != RS_NET_IDLE)
|
||||
return;
|
||||
|
||||
CNXDNSACCH sacch;
|
||||
|
||||
Reference in New Issue
Block a user