Skip to content

Commit a3699ae

Browse files
authored
Update ESP8266WiFiAP.cpp
1 parent 51be25b commit a3699ae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libraries/ESP8266WiFi/src/ESP8266WiFiAP.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,13 @@ bool ESP8266WiFiAPClass::softAP(const char* ssid, const char* passphrase, int ch
139139

140140
if(!softap_config_equal(conf, conf_compare)) {
141141

142-
ETS_UART_INTR_DISABLE();
142+
ETS_INTR_LOCK();
143143
if(WiFi._persistent) {
144144
ret = wifi_softap_set_config(&conf);
145145
} else {
146146
ret = wifi_softap_set_config_current(&conf);
147147
}
148-
ETS_UART_INTR_ENABLE();
148+
ETS_INTR_UNLOCK();
149149

150150
if(!ret) {
151151
DEBUG_WIFI("[AP] set_config failed!\n");
@@ -290,13 +290,13 @@ bool ESP8266WiFiAPClass::softAPdisconnect(bool wifioff) {
290290
*conf.ssid = 0;
291291
*conf.password = 0;
292292
conf.authmode = AUTH_OPEN;
293-
ETS_UART_INTR_DISABLE();
293+
ETS_INTR_LOCK();
294294
if(WiFi._persistent) {
295295
ret = wifi_softap_set_config(&conf);
296296
} else {
297297
ret = wifi_softap_set_config_current(&conf);
298298
}
299-
ETS_UART_INTR_ENABLE();
299+
ETS_INTR_UNLOCK();
300300

301301
if(!ret) {
302302
DEBUG_WIFI("[APdisconnect] set_config failed!\n");

0 commit comments

Comments
 (0)