Skip to content

Commit 4ea837a

Browse files
committed
Revert "Do suggestion"
This reverts commit 6c14264.
1 parent 6c14264 commit 4ea837a

File tree

1 file changed

+2
-0
lines changed
  • ports/espressif/common-hal/wifi

1 file changed

+2
-0
lines changed

ports/espressif/common-hal/wifi/Radio.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,8 @@ wifi_radio_error_t common_hal_wifi_radio_connect(wifi_radio_obj_t *self, uint8_t
381381
(self->last_disconnect_reason == WIFI_REASON_4WAY_HANDSHAKE_TIMEOUT)
382382
) {
383383
return WIFI_RADIO_ERROR_AUTH_FAIL;
384+
} else if (self->last_disconnect_reason == WIFI_REASON_NO_AP_FOUND) {
385+
return WIFI_RADIO_ERROR_NO_AP_FOUND;
384386
}
385387
return self->last_disconnect_reason;
386388
} else {

0 commit comments

Comments
 (0)