Compare commits

...
Author SHA1 Message Date
Ricardo Guzman 2b6012a0ca Wifi Fix when returning from backupMode 2026-11-17 13:48:50 -03:00
Ricardo Guzman 3efa333df4 date update 2026-10-29 14:54:41 -03:00
Ricardo Guzman aab05be49f batt message fix 2026-10-29 11:17:11 -03:00
3 changed files with 10 additions and 10 deletions

No files matched your search

+1 -1
View File
@@ -69,7 +69,7 @@ ___________________________________________________________________*/
#endif
String versionDate = "2026-10-18";
String versionDate = "2026-10-29";
String versionNumber = "4.0.5";
Configuration Config;
WiFiClient aprsIsClient;
+5 -5
View File
@@ -221,8 +221,8 @@ namespace Utils {
if (Config.battery.sendInternalVoltage || Config.battery.monitorInternalVoltage) {
float internalVoltage = BATTERY_Utils::checkInternalVoltage();
if (Config.battery.monitorInternalVoltage && internalVoltage < Config.battery.internalSleepVoltage) {
aprsisBeaconPacket += " **IntBatWarning:SLEEP**";
loraBeaconPacket += " **IntBatWarning:SLEEP**";
aprsisBeaconPacket += " **IntBattWarning:SLEEP**";
loraBeaconPacket += " **IntBattWarning:SLEEP**";
shouldSleepLowVoltage = true;
}
@@ -248,8 +248,8 @@ namespace Utils {
if (Config.battery.sendExternalVoltage || Config.battery.monitorExternalVoltage) {
float externalVoltage = BATTERY_Utils::checkExternalVoltage();
if (Config.battery.monitorExternalVoltage && externalVoltage < Config.battery.externalSleepVoltage) {
aprsisBeaconPacket += " **ExtBatWarning:SLEEP**";
loraBeaconPacket += " **ExtBatWarning:SLEEP**";
aprsisBeaconPacket += " **ExtBattWarning:SLEEP**";
loraBeaconPacket += " **ExtBattWarning:SLEEP**";
shouldSleepLowVoltage = true;
}
@@ -428,7 +428,7 @@ namespace Utils {
if (mode == 0) { // at startup
delay(3000);
}
Serial.println("\n\n*** Sleeping Low Battey Voltage ***\n\n");
Serial.println("\n\n*** Sleeping Low Battery Voltage ***\n\n");
esp_sleep_enable_timer_wakeup(30 * 60 * 1000000); // sleep 30 min
if (mode == 1) { // low voltage detected after a while
displayToggle(false);
+4 -4
View File
@@ -49,12 +49,12 @@ namespace WIFI_Utils {
uint32_t currentTime = millis();
if (backupDigiMode) {
if (!networkManager->isWiFiConnected() && ((currentTime - lastBackupDigiTime) >= 15 * 60 * 1000)) {
Serial.println("*** Stopping BackUp Digi Mode ***");
if (lastServerCheck > lastBackupDigiTime) { // APRS-IS server spoke after entering backup (with or without a WiFi drop)
Serial.println("*** APRS-IS Server Back (Stopping Backup Digi Mode) ***");
backupDigiMode = false;
wifiCounter = 0;
} else if (networkManager->isWiFiConnected()) {
Serial.println("*** WiFi Reconnect Success (Stopping Backup Digi Mode) ***");
} else if (!networkManager->isWiFiConnected() && ((currentTime - lastBackupDigiTime) >= 15 * 60 * 1000)) {
Serial.println("*** Stopping BackUp Digi Mode ***"); // no WiFi for 15 min: leave backup to retry WiFi
backupDigiMode = false;
wifiCounter = 0;
}