mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-15 00:02:49 +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:
@ -129,9 +129,15 @@ bool ESP8266WiFiAPClass::softAP(const char* ssid, const char* passphrase, int ch
|
||||
strcpy(reinterpret_cast<char*>(conf.password), passphrase);
|
||||
}
|
||||
|
||||
struct softap_config conf_current;
|
||||
wifi_softap_get_config(&conf_current);
|
||||
if(!softap_config_equal(conf, conf_current)) {
|
||||
struct softap_config conf_compare;
|
||||
if(WiFi._persistent){
|
||||
wifi_softap_get_config_default(&conf_compare);
|
||||
}
|
||||
else {
|
||||
wifi_softap_get_config(&conf_compare);
|
||||
}
|
||||
|
||||
if(!softap_config_equal(conf, conf_compare)) {
|
||||
|
||||
ETS_UART_INTR_DISABLE();
|
||||
if(WiFi._persistent) {
|
||||
|
Reference in New Issue
Block a user