mirror of https://github.com/ARMmbed/mbed-os.git
Wrong order of code fixed
The source file had dead code because code was behind return and therefore unreachable. Order was changed to have correct behaviourpull/12098/head
parent
8fcfbe117f
commit
abf2ea94ba
|
|
@ -637,10 +637,10 @@ int ESP8266Interface::scan(WiFiAccessPoint *res, unsigned count, scan_mode mode,
|
|||
|
||||
nsapi_error_t status = _init();
|
||||
if (status != NSAPI_ERROR_OK) {
|
||||
return status;
|
||||
if (_software_conn_stat == IFACE_STATUS_DISCONNECTED) {
|
||||
_esp.uart_enable_input(false);
|
||||
}
|
||||
return status;
|
||||
}
|
||||
|
||||
int ret = _esp.scan(res, count, (mode == SCANMODE_ACTIVE ? ESP8266::SCANMODE_ACTIVE : ESP8266::SCANMODE_PASSIVE),
|
||||
|
|
|
|||
Loading…
Reference in New Issue