added 0 in lat sprintf

pull/182/head
alanbjohnston 4 years ago committed by GitHub
parent ba10303ccb
commit 2d05f1b5dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save

Powered by TurnKey Linux.