Skip to content

Commit 68c0a1c

Browse files
dontsovcmcdevyte
authored andcommitted
sta_config_equal (#5937)
* sta_config_equal * sta_config_equal bug update
1 parent c1e439d commit 68c0a1c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Diff for: libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp

+14
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,20 @@ static bool sta_config_equal(const station_config& lhs, const station_config& rh
8181
return false;
8282
}
8383
}
84+
85+
if(lhs.threshold.rssi != rhs.threshold.rssi) {
86+
return false;
87+
}
88+
89+
if(lhs.threshold.authmode != rhs.threshold.authmode) {
90+
return false;
91+
}
92+
93+
#ifdef NONOSDK3V0
94+
if (lhs.open_and_wep_mode_disable != rhs.open_and_wep_mode_disable) {
95+
return false;
96+
}
97+
#endif
8498

8599
return true;
86100
}

0 commit comments

Comments
 (0)