From d34ce7301010339471ddf7b4c3272c35863de6dd Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 20 Jun 2021 23:01:20 -0400 Subject: [PATCH] moved coords APRS --- afsk/main.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/afsk/main.c b/afsk/main.c index 21a04a35..fab5114c 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -1143,13 +1143,14 @@ void get_tlm(void) { if (ax5043) { strcpy(str, header_str); - } else { + } else if (mode == AFSK) { strcpy(str, header_str3); + strcat(str, call); + strcat(str, header_str2); + } // printf("Str: %s \n", str); if (mode != CW) { - strcat(str, call); - strcat(str, header_str2); - // sprintf(header_str2b, "=%7.2f%c%c%c%08.2f%cShi hi ",4003.79,'N',0x5c,0x5c,07534.33,'W'); // add APRS lat and long + // sprintf(header_str2b, "=%7.2f%c%c%c%08.2f%cShi hi ",4003.79,'N',0x5c,0x5c,07534.33,'W'); // add APRS lat and long if (latitude > 0) sprintf(header_lat, "%7.2f%c", latitude, 'N'); // lat else @@ -1164,9 +1165,9 @@ void get_tlm(void) { strcat(str, header_str2b); } else { strcat(str, header_str4); -// printf("Str: %s \n", str); } - } +// } + printf("Str: %s \n", str); int channel; for (channel = 1; channel < 7; channel++) {