From ed8bf0e1d9caceff52ae200e801faf86efa87895 Mon Sep 17 00:00:00 2001 From: MiGri Date: Tue, 14 Sep 2021 21:24:09 +0200 Subject: [PATCH] Bugfix for empty relay path Bugfix for https://github.com/SQ9MDD/TTGO-T-Beam-LoRa-APRS/issues/63 --- src/TTGO_T-Beam_LoRa_APRS.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/TTGO_T-Beam_LoRa_APRS.ino b/src/TTGO_T-Beam_LoRa_APRS.ino index 66a9d1c..3823434 100644 --- a/src/TTGO_T-Beam_LoRa_APRS.ino +++ b/src/TTGO_T-Beam_LoRa_APRS.ino @@ -248,10 +248,10 @@ void prepareAPRSFrame(){ outString = ""; outString += Tcall; - if (relay_path){ - outString += ">APLO01," + relay_path + ":!"; - }else{ + if (relay_path.isEmpy()){ outString += ">APLO01:!"; + }else{ + outString += ">APLO01," + relay_path + ":!"; } if(gps_state && gps.location.isValid()){