mirror of
https://github.com/ShaYmez/NXDNClients.git
synced 2025-02-03 09:44:25 -05:00
Expect a space between Talkgroup and its number.
This commit is contained in:
parent
d37a175bdc
commit
0e79ba991c
@ -474,7 +474,7 @@ void CNXDNGateway::run()
|
||||
if (res > 0) {
|
||||
buffer[res] = '\0';
|
||||
if (::memcmp(buffer + 0U, "TalkGroup", 9U) == 0) {
|
||||
unsigned int tg = (unsigned int)::atoi((char*)(buffer + 9U));
|
||||
unsigned int tg = ((strlen((char*)buffer + 0U) > 10) ? (unsigned int)::atoi((char*)(buffer + 10U)) : 9999);
|
||||
|
||||
if (tg != currentTG) {
|
||||
if (currentAddrLen > 0U) {
|
||||
|
Loading…
Reference in New Issue
Block a user