mirror of
https://github.com/oe7drt/YSFClients.git
synced 2026-02-10 09:14:28 +01:00
Correct the lat and long format specifier.
This commit is contained in:
parent
94303d3df4
commit
34cd9a1eae
|
|
@ -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