Show altitude only if gps is valid

pull/10/head
Łukasz Nidecki 2021-02-15 13:15:38 +01:00
parent 743fbe50b3
commit 8ff824d322
1 changed files with 4 additions and 5 deletions

View File

@ -217,6 +217,10 @@ void recalcGPS(){
ax25_base91enc(helper_base91, 1, (uint32_t) (log1p(Tspeed)/0.07696));
outString += helper_base91[0];
outString += "\x48";
#ifdef SHOW_ALT
outString += "/A=";
outString += Altx;
#endif
}else{
outString += LATIDUDE_PRESET;
outString += APRS_SYMBOL_TABLE;
@ -224,11 +228,6 @@ void recalcGPS(){
outString += APRS_SYMBOL;
}
#ifdef SHOW_ALT
outString += "/A=";
outString += Altx;
#endif
outString += MY_COMMENT;
#ifdef SHOW_BATT // battery is not frame part move after comment