diff --git a/src/LoRa_APRS_iGate.cpp b/src/LoRa_APRS_iGate.cpp index 386338f4..d946faec 100644 --- a/src/LoRa_APRS_iGate.cpp +++ b/src/LoRa_APRS_iGate.cpp @@ -23,8 +23,8 @@ Configuration Config; WiFiClient espClient; -String versionDate = "2024.03.27"; -int myWiFiAPIndex = 0; +String versionDate = "2024.03.28"; +uint8_t myWiFiAPIndex = 0; int myWiFiAPSize = Config.wifiAPs.size(); WiFi_AP *currentWiFi = &Config.wifiAPs[myWiFiAPIndex]; diff --git a/src/wifi_utils.cpp b/src/wifi_utils.cpp index 34289618..df7188e4 100644 --- a/src/wifi_utils.cpp +++ b/src/wifi_utils.cpp @@ -7,7 +7,7 @@ extern Configuration Config; extern WiFi_AP *currentWiFi; -extern int myWiFiAPIndex; +extern uint8_t myWiFiAPIndex; extern int myWiFiAPSize; extern uint32_t previousWiFiMillis; extern bool WiFiConnected; @@ -62,7 +62,7 @@ namespace WIFI_Utils { #endif if ((millis() - start) > 10000){ delay(1000); - if(myWiFiAPIndex >= (myWiFiAPSize-1)) { + if(myWiFiAPIndex >= (myWiFiAPSize - 1)) { myWiFiAPIndex = 0; wifiCounter++; } else {