mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-07-06 09:51:14 +02:00
fix: mode 5 with auto ap
This commit is contained in:
@@ -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,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);
|
||||
|
||||
Reference in New Issue
Block a user