Browse Source

Show altitude only if gps is valid

pull/10/head
Łukasz Nidecki 1 year ago
parent
commit
8ff824d322
  1. 9
      src/TTGO_T-Beam_LoRa_APRS.ino

9
src/TTGO_T-Beam_LoRa_APRS.ino

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

Loading…
Cancel
Save