From 65e669fb2164b37b5809217e7af6c76ab0684907 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 11 Jul 2021 12:32:54 -0400 Subject: [PATCH] generate gps_str --- main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 83f1da20..76dc9422 100644 --- a/main.c +++ b/main.c @@ -910,7 +910,10 @@ void get_tlm(void) { pclose(file_gps); latitude = toAprsFormat(lat_gps); - longitude = toAprsFormat(lon_gps); + longitude = toAprsFormat(lon_gps); + + char gps_str[1000]; + sprintf(gps_str, "%7.4f %7.4f %7.4f", lat_gps, lon_gps, alt_gps); // printf("Str: %s \n", str); if (mode != CW) { @@ -1041,7 +1044,7 @@ void get_tlm(void) { } else { // APRS using rpitx - strcat(str, resBuffer); // add GPS data to the end + strcat(str, gps_str); // add GPS data to the end strcat(str, footer_str1); strcat(str, call);