mirror of
https://github.com/ShaYmez/NXDNClients.git
synced 2025-07-31 12:12:24 -04:00
Merge pull request #204 from f1rmb/fix_remote_commands
This commit is contained in:
commit
599f51c9b8
@ -474,7 +474,7 @@ void CNXDNGateway::run()
|
|||||||
if (res > 0) {
|
if (res > 0) {
|
||||||
buffer[res] = '\0';
|
buffer[res] = '\0';
|
||||||
if (::memcmp(buffer + 0U, "TalkGroup", 9U) == 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 (tg != currentTG) {
|
||||||
if (currentAddrLen > 0U) {
|
if (currentAddrLen > 0U) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user