Skip to content

Commit

Permalink
Set networks to try to 3
Browse files Browse the repository at this point in the history
  • Loading branch information
tyeth committed Jul 12, 2024
1 parent adac2b2 commit 46421e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/network_interfaces/Wippersnapper_ESP32.h
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ class Wippersnapper_ESP32 : public Wippersnapper {
// add default network
_wifiMulti.addAP(_ssid, _pass);
// add array of alternative networks
for (int i = 0; i < 5; i++) {
for (int i = 0; i < 3; i++) {
if (strlen(WS._multiNetworks[i].ssid) > 0) {
_wifiMulti.addAP(WS._multiNetworks[i].ssid,
WS._multiNetworks[i].pass);
Expand Down
2 changes: 1 addition & 1 deletion src/network_interfaces/Wippersnapper_ESP8266.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class Wippersnapper_ESP8266 : public Wippersnapper {
for (int i = 0; i < n; ++i) {
if (strlen(WS._multiNetworks[0].ssid) > 0) {
// multi network mode
for (int j = 0; j < 5; j++) {
for (int j = 0; j < 3; j++) {
if (strcmp(WS._multiNetworks[j].ssid, WiFi.SSID(i).c_str()) == 0)
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/network_interfaces/ws_networking_pico.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class ws_networking_pico : public Wippersnapper {
for (int i = 0; i < n; ++i) {
if (strlen(WS._multiNetworks[0].ssid) > 0) {
// multi network mode
for (int j = 0; j < 5; j++) {
for (int j = 0; j < 3; j++) {
if (strcmp(WS._multiNetworks[j].ssid, WiFi.SSID(i)) == 0)
return true;
}
Expand Down

0 comments on commit 46421e9

Please sign in to comment.