mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-22 08:05:49 +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 aPos = i + 0U;
|
||||||
unsigned int bPos = i + 12U;
|
unsigned int bPos = i + 12U;
|
||||||
|
|
||||||
WRITE_BIT(out, aPos, a & MASK);
|
WRITE_BIT(out, aPos, data & MASK);
|
||||||
WRITE_BIT(out, bPos, b & MASK);
|
WRITE_BIT(out, bPos, datb & MASK);
|
||||||
|
|
||||||
MASK >>= 1;
|
MASK >>= 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -770,9 +770,9 @@ void CNXDNControl::writeNetwork()
|
|||||||
m_netLayer3.setData(netData + 5U + 0U, 10U);
|
m_netLayer3.setData(netData + 5U + 0U, 10U);
|
||||||
|
|
||||||
unsigned char type = m_netLayer3.getMessageType();
|
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;
|
return;
|
||||||
if (type == NXDN_MESSAGE_TYPE_VCALL && m_netState != RS_RF_LISTENING)
|
if (type == NXDN_MESSAGE_TYPE_VCALL && m_netState != RS_NET_IDLE)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
CNXDNSACCH sacch;
|
CNXDNSACCH sacch;
|
||||||
|
|||||||
Reference in New Issue
Block a user