From 34cd9a1eae828992e5d13e0b889050900ea9f344 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Mon, 4 Jul 2016 20:13:46 +0100 Subject: [PATCH] Correct the lat and long format specifier. --- YSFGateway/APRSWriter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/YSFGateway/APRSWriter.cpp b/YSFGateway/APRSWriter.cpp index 121419a..83751af 100644 --- a/YSFGateway/APRSWriter.cpp +++ b/YSFGateway/APRSWriter.cpp @@ -95,10 +95,10 @@ void CAPRSWriter::write(const unsigned char* source, const char* type, unsigned longitude = (tempLong - longitude) * 60.0 + longitude * 100.0; char lat[20U]; - ::sprintf(lat, "%04.2lf", latitude); + ::sprintf(lat, "%07.2lf", latitude); char lon[20U]; - ::sprintf(lon, "%05.2lf", longitude); + ::sprintf(lon, "%08.2lf", longitude); char symbol; switch (radio) {