mirror of
https://github.com/ShaYmez/P25Clients.git
synced 2024-11-24 21:28:38 -05:00
Handle the new reflector control information cleanly.
This commit is contained in:
parent
e24909926d
commit
3baea4b6d4
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user