Skip to content

Commit

Permalink
uint8_t update
Browse files Browse the repository at this point in the history
  • Loading branch information
richonguzman committed Mar 28, 2024
1 parent dec018f commit ca3c1ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/LoRa_APRS_iGate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down
4 changes: 2 additions & 2 deletions src/wifi_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit ca3c1ea

Please sign in to comment.