From 2d05f1b5ddb218d2e58e6c56d5714d288260945f Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 20 Aug 2022 08:43:05 -0400 Subject: [PATCH] added 0 in lat sprintf --- cubesatsim/cubesatsim.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index 4453dddd..24dfd64a 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -3914,9 +3914,9 @@ void set_lat_lon() { // longitude = toAprsFormat(longitude); // 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(lat_string, "%7.2f%c", toAprsFormat(latitude), 'N'); // lat + sprintf(lat_string, "%07.2f%c", toAprsFormat(latitude), 'N'); // lat else - sprintf(lat_string, "%7.2f%c", toAprsFormat(latitude) * (-1.0), 'S'); // lat + sprintf(lat_string, "%07.2f%c", toAprsFormat(latitude) * (-1.0), 'S'); // lat if (longitude > 0) sprintf(lon_string, "%08.2f%c", toAprsFormat(longitude), 'E'); // long else