mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-07 16:23:38 +03:00
parent
61cc420cb8
commit
f2fb43cabf
@ -140,6 +140,11 @@ wl_status_t ESP8266WiFiSTAClass::begin(const char* ssid, const char *passphrase,
|
|||||||
ETS_UART_INTR_DISABLE();
|
ETS_UART_INTR_DISABLE();
|
||||||
|
|
||||||
if(WiFi._persistent) {
|
if(WiFi._persistent) {
|
||||||
|
// workaround for #1997: make sure the value of ap_number is updated and written to flash
|
||||||
|
// to be removed after SDK update
|
||||||
|
wifi_station_ap_number_set(2);
|
||||||
|
wifi_station_ap_number_set(1);
|
||||||
|
|
||||||
wifi_station_set_config(&conf);
|
wifi_station_set_config(&conf);
|
||||||
} else {
|
} else {
|
||||||
wifi_station_set_config_current(&conf);
|
wifi_station_set_config_current(&conf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user