mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-07 06:01:35 +03:00
Bugfix/persistentchecks (#3798)
* persistent check fixes fixes assumtions that persistent matches current configs, and prevents changes when such conditions exist * oops * fix code compliance block scoping
This commit is contained in:
@ -316,7 +316,11 @@ bool ESP8266WiFiGenericClass::getPersistent(){
|
||||
* @param m WiFiMode_t
|
||||
*/
|
||||
bool ESP8266WiFiGenericClass::mode(WiFiMode_t m) {
|
||||
if(wifi_get_opmode() == (uint8) m) {
|
||||
if(_persistent){
|
||||
if(wifi_get_opmode() == (uint8) m && wifi_get_opmode_default() == (uint8) m){
|
||||
return true;
|
||||
}
|
||||
} else if(wifi_get_opmode() == (uint8) m){
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user