From 04287e4e1f14cb8a37fe6d5deda326b93d039218 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Sat, 25 Nov 2023 19:17:34 +0100 Subject: [PATCH 1/2] fix division by zero --- src/LoRa_APRS_Tracker.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/LoRa_APRS_Tracker.cpp b/src/LoRa_APRS_Tracker.cpp index 244d4c8..b53e021 100644 --- a/src/LoRa_APRS_Tracker.cpp +++ b/src/LoRa_APRS_Tracker.cpp @@ -367,6 +367,9 @@ void loop() { would lead to decrease of beacon rate in between 5 to 20 km/h. what is even below the slow speed rate. */ + if (curr_speed == 0) { + curr_speed = 1; + } txInterval = min(BeaconMan.getCurrentBeaconConfig()->smart_beacon.slow_rate, BeaconMan.getCurrentBeaconConfig()->smart_beacon.fast_speed * BeaconMan.getCurrentBeaconConfig()->smart_beacon.fast_rate / curr_speed) * 1000; From 3fbb68d9eaa5f2d0ff12c6c5efe303ba8ceee83b Mon Sep 17 00:00:00 2001 From: root Date: Sun, 2 Jun 2024 00:26:29 +0000 Subject: [PATCH 2/2] Bump XPowersLib to 0.2.4 --- platformio.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index a97bb57..2a68a43 100644 --- a/platformio.ini +++ b/platformio.ini @@ -11,7 +11,7 @@ lib_deps = adafruit/Adafruit GFX Library @ 1.11.7 adafruit/Adafruit SSD1306 @ 2.5.7 bblanchon/ArduinoJson @ 6.21.3 - lewisxhe/XPowersLib @ 0.1.8 + lewisxhe/XPowersLib @ 0.2.4 sandeepmistry/LoRa @ 0.8.0 peterus/APRS-Decoder-Lib @ 0.0.6 mikalhart/TinyGPSPlus @ 1.0.3