From a8f013ba7de0fccd2ffa7fca723ae7a2d6d51f30 Mon Sep 17 00:00:00 2001 From: richonguzman Date: Sun, 30 Jul 2023 19:06:10 -0400 Subject: [PATCH] 1.1.6 --- src/digi_utils.cpp | 14 ++++++++++++++ src/digi_utils.h | 1 + 2 files changed, 15 insertions(+) diff --git a/src/digi_utils.cpp b/src/digi_utils.cpp index baf78f7..1821012 100644 --- a/src/digi_utils.cpp +++ b/src/digi_utils.cpp @@ -49,5 +49,19 @@ void processPacket(String packet) { } } } +void loop() { + if (lastStationModeState == 0) { + iGateBeaconPacket = GPS_Utils::generateBeacon(); + lastStationModeState = 1; + String Tx = String(Config.loramodule.digirepeaterTxFreq); + secondLine = "Rx:" + String(Tx.substring(0,3)) + "." + String(Tx.substring(3,6)); + secondLine += " Tx:" + String(Tx.substring(0,3)) + "." + String(Tx.substring(3,6)); + thirdLine = "<< DigiRepeater >>"; + } + Utils::checkDisplayInterval(); + Utils::checkBeaconInterval(); + show_display(firstLine, secondLine, thirdLine, fourthLine, fifthLine, sixthLine, seventhLine, 0); + DIGI_Utils::processPacket(LoRa_Utils::receivePacket()); +} } \ No newline at end of file diff --git a/src/digi_utils.h b/src/digi_utils.h index a3b78f5..5f4415f 100644 --- a/src/digi_utils.h +++ b/src/digi_utils.h @@ -6,6 +6,7 @@ namespace DIGI_Utils { void processPacket(String packet); +void loop(); }