Correct the lat and long format specifier.

This commit is contained in:
Jonathan Naylor 2016-07-04 20:13:46 +01:00
parent 94303d3df4
commit 34cd9a1eae

View file

@ -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) {