From 4b7d5033ca2e5431d7b7fe2bad54e2a93a078358 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Sun, 29 Mar 2020 17:27:23 -0700 Subject: [PATCH] VIA SMARTGP rearrange --- QnetGateway.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/QnetGateway.cpp b/QnetGateway.cpp index af1ef60..f458c1d 100644 --- a/QnetGateway.cpp +++ b/QnetGateway.cpp @@ -766,10 +766,10 @@ void CQnetGateway::ProcessSlowData(unsigned char *data, unsigned short sid) } if (band_txt[i].txt_cnt >= 20) { - if (0 == memcmp(band_txt[i].txt, "VIA SMARTGP ", 12)) - printf("%s\n", band_txt[i].txt); band_txt[i].txt[band_txt[i].txt_cnt] = '\0'; band_txt[i].txt_cnt = 0; + if (0 == memcmp(band_txt[i].txt, "VIA SMARTGP ", 12)) + printf("%s\n", band_txt[i].txt); } } else { // header type is not header, squelch, gps or message