From 062873e6995c93014fe6e32a55e48b8b045d360f Mon Sep 17 00:00:00 2001 From: Jean Pierre Lathuile Date: Mon, 13 Mar 2023 11:44:22 +0100 Subject: [PATCH] Update LoRa_APRS_Tracker.cpp --- src/LoRa_APRS_Tracker.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/LoRa_APRS_Tracker.cpp b/src/LoRa_APRS_Tracker.cpp index 96fedb1..6de0e85 100644 --- a/src/LoRa_APRS_Tracker.cpp +++ b/src/LoRa_APRS_Tracker.cpp @@ -359,19 +359,18 @@ void loop() { "firmware: https://github.com/lora-aprs/TTGO-T-Beam_GPS-reset"); show_display("No GPS frames detected!", "Try to reset the GPS Chip", "https://github.com/lora-aprs/TTGO-T-Beam_GPS-reset", 2000); } - - //RX + + // RX int packetSize = LoRa.parsePacket(); - - if (packetSize) { + + if (packetSize) { String rxdata; - + while (LoRa.available()) { // read packet - rxdata+=(char)LoRa.read(); + rxdata += (char)LoRa.read(); } - - rxdata+="' with RSSI "; - rxdata+=(LoRa.packetRssi()); + rxdata += "' with RSSI "; + rxdata += (LoRa.packetRssi()); show_display("<< RX RX >>", rxdata); delay(4000); }