We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90b4701 commit 3bb5207Copy full SHA for 3bb5207
ESP8266Interface.cpp
@@ -254,18 +254,7 @@ bool ESP8266Interface::_get_firmware_ok()
254
255
bool ESP8266Interface::_disable_default_softap()
256
{
257
- static int disabled = false;
258
-
259
- if (disabled || _esp.default_wifi_mode() == ESP8266::WIFIMODE_STATION) {
260
- disabled = true;
261
- return true;
262
- }
263
- if (_esp.set_default_wifi_mode(ESP8266::WIFIMODE_STATION)) {
264
265
266
267
268
- return false;
+ return _esp.set_default_wifi_mode(ESP8266::WIFIMODE_STATION);
269
}
270
271
nsapi_error_t ESP8266Interface::_init(void)
0 commit comments