don't set lat long if 0

bp-new
alanbjohnston 5 years ago committed by GitHub
parent 7d2c4186b5
commit d8510ab5cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -928,11 +928,12 @@ void get_tlm(void) {
printf("GPS Data: %f, %f, %f \n", lat_gps, lon_gps, alt_gps);
pclose(file_gps);
// if (lat_gps != 0.0) {
if (lat_gps != 0.0) {
latitude = toAprsFormat(lat_gps);
longitude = toAprsFormat(lon_gps);
sprintf(gps_str, "%7.4f %7.4f %7.1f", lat_gps, lon_gps, alt_gps);
// }
// sprintf(gps_str, "%7.4f %7.4f %7.1f", lat_gps, lon_gps, alt_gps);
}
sprintf(gps_str, "%7.4f %7.4f %7.1f", toAprsFormat(lat_gps), tpA[rsFpr,at(lon_gps), alt_gps);
// printf("Str: %s \n", str);
if (mode != CW) {

Loading…
Cancel
Save

Powered by TurnKey Linux.