Fix reported compilation errors.

This commit is contained in:
Jonathan Naylor 2018-03-01 07:34:41 +00:00
parent ad578c1ccd
commit dcb9dd31a9
2 changed files with 4 additions and 4 deletions

View file

@ -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;
}

View file

@ -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;