From df89fab51eb5fb15133b71b71b87340aedb31c3b Mon Sep 17 00:00:00 2001 From: Tekk Date: Sat, 4 Dec 2021 04:27:24 +0100 Subject: [PATCH] Cleanup code --- src/LoRa_APRS_Tracker.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/LoRa_APRS_Tracker.cpp b/src/LoRa_APRS_Tracker.cpp index 9a7bf42..266133c 100644 --- a/src/LoRa_APRS_Tracker.cpp +++ b/src/LoRa_APRS_Tracker.cpp @@ -187,15 +187,15 @@ void loop() { if (send_update && gps_loc_update) { send_update = false; - nextBeaconTimeStamp = now() + (Config.smart_beacon.active ? Config.smart_beacon.slow_rate : (Config.GetCurrentBeacon().timeout * SECS_PER_MIN)); + Configuration::Beacon beacon = Config.GetCurrentBeacon(); + + nextBeaconTimeStamp = now() + (Config.smart_beacon.active ? Config.smart_beacon.slow_rate : (beacon.timeout * SECS_PER_MIN)); APRSMessage msg; String lat; String lng; String dao; - Configuration::Beacon beacon = Config.GetCurrentBeacon(); - msg.setSource(beacon.callsign); msg.setDestination("APLT00-1");