Correct the lat and long format specifier.
This commit is contained in:
parent
94303d3df4
commit
34cd9a1eae
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue