From 8852ba8647db5cd3d318d6e76bc3839db4164bea Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Thu, 10 Jun 2021 08:45:00 -0400 Subject: [PATCH] got rid of 100 x lat and long --- afsk/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/afsk/main.c b/afsk/main.c index 8bb89db7..94b8721e 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -940,13 +940,13 @@ void get_tlm(void) { 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 if (latitude > 0) - sprintf(header_lat, "%7.2f%c", latitude * 100.0, 'N'); // lat + sprintf(header_lat, "%7.2f%c", latitude, 'N'); // lat else - sprintf(header_lat, "%7.2f%c", latitude * (-100.0), 'S'); // lat + sprintf(header_lat, "%7.2f%c", latitude * (-1.0), 'S'); // lat if (longitude > 0) - sprintf(header_long, "%08.2f%c", longitude * 100.0, 'E'); // long + sprintf(header_long, "%08.2f%c", longitude , 'E'); // long else - sprintf(header_long, "%08.2f%c", longitude * (-100.0), 'W'); // long + 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 printf("\n\nString is %s \n\n", header_str2b);