From efaa0b54567767b529c7963deb10ca61a0ead14c Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 20 Jun 2021 23:17:04 -0400 Subject: [PATCH] fixed APRS header for AX5043 --- afsk/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/afsk/main.c b/afsk/main.c index 631e2c57..26b22fd5 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -1159,8 +1159,10 @@ void get_tlm(void) { sprintf(header_long, "%08.2f%c", longitude , 'E'); // long else sprintf(header_long, "%08.2f%c", longitude * (-1.0), 'W'); // long - - sprintf(header_str2b, "=%s%c%c%sShi hi ", header_lat, 0x5c, 0x5c, header_long); // add APRS lat and long + if (ax5043) + sprintf(header_str2b, "=%s%c%sShi hi ", header_lat, 0x5c, header_long); // add APRS lat and long + else + sprintf(header_str2b, "=%s%c%c%sShi hi ", header_lat, 0x5c, 0x5c, header_long); // add APRS lat and long // printf("\n\nString is %s \n\n", header_str2b); strcat(str, header_str2b); } else {