fix: mode 5 with auto ap

This commit is contained in:
SQ2CPA
2024-02-25 18:08:24 +01:00
parent b45633ab48
commit 3fa5c9e361
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -96,8 +96,8 @@ void loop() {
DIGI_Utils::loop();
} else if (stationMode==5) { // iGate when WiFi and APRS available , DigiRepeater when not (RxFreq=TxFreq)
Utils::checkWiFiInterval();
thirdLine = Utils::getLocalIP();
if (WiFi.status() == WL_CONNECTED) { // iGate Mode
thirdLine = Utils::getLocalIP();
if (!espClient.connected()) {
APRS_IS_Utils::connect();
}
+3
View File
@@ -3,6 +3,7 @@
#include "pins_config.h"
#include "wifi_utils.h"
#include "display.h"
#include "utils.h"
extern Configuration Config;
extern WiFi_AP *currentWiFi;
@@ -140,6 +141,8 @@ namespace WIFI_Utils {
btStop();
} else if (stationMode==5) {
Serial.println("stationMode ---> iGate when Wifi/APRS available (DigiRepeater when not)");
startWiFi();
btStop();
} else {
Serial.println("stationMode ---> NOT VALID");
show_display("------- ERROR -------", "stationMode Not Valid", "device will autofix", "and then reboot", 1000);