From 967a55ad2fa3ce69f8d96b032462237c6af479de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Nidecki?= Date: Sat, 26 Jun 2021 15:41:37 +0200 Subject: [PATCH] Display info when GPS is disabled --- src/TTGO_T-Beam_LoRa_APRS.ino | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/TTGO_T-Beam_LoRa_APRS.ino b/src/TTGO_T-Beam_LoRa_APRS.ino index 0fed844..833ae39 100644 --- a/src/TTGO_T-Beam_LoRa_APRS.ino +++ b/src/TTGO_T-Beam_LoRa_APRS.ino @@ -410,7 +410,13 @@ String getSatAndBatInfo() { } void displayInvalidGPS() { - writedisplaytext(" " + Tcall, "(TX) at valid GPS", "LAT: not valid", "LON: not valid", "SPD: --- CRS: ---", getSatAndBatInfo()); + char *nextTxInfo; + if (!gps_state){ + nextTxInfo = (char*)"(TX) GPS DISABLED"; + } else { + nextTxInfo = (char*)"(TX) at valid GPS"; + } + writedisplaytext(" " + Tcall, nextTxInfo, "LAT: not valid", "LON: not valid", "SPD: --- CRS: ---", getSatAndBatInfo()); } #if defined(KISS_PROTOCOL)