Handle the new reflector control information cleanly.

This commit is contained in:
Jonathan Naylor 2016-10-11 17:44:04 +01:00
parent e24909926d
commit 3baea4b6d4

View File

@ -72,11 +72,17 @@ void CNetwork::clock(unsigned int ms)
CUtils::dump(1U, "P25 Network Data Received", buffer, length);
if (buffer[0U] == 0xF0U) { // A poll
write(buffer, length);
} else if (buffer[0U] == 0xF1U) { // An unlink
// Nothing to do
} else {
unsigned char l = length;
m_buffer.addData(&l, 1U);
m_buffer.addData(buffer, length);
}
}
unsigned int CNetwork::read(unsigned char* data)
{