diff options
| author | BennyE <bennye_hh@posteo.net> | 2020-11-20 09:40:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-20 09:40:32 +0100 |
| commit | 2773f534c946df46da5ba87c0968b5e4912a6b2b (patch) | |
| tree | 50055153104c15990c4a6f529e50d2aebb7c1cb7 /ports/esp32s2 | |
| parent | 6760cdf678061abeaf2627e5903c8601eee6fc66 (diff) | |
Update ports/esp32s2/common-hal/wifi/Radio.c
adding suggested changes
Diffstat (limited to 'ports/esp32s2')
| -rw-r--r-- | ports/esp32s2/common-hal/wifi/Radio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ports/esp32s2/common-hal/wifi/Radio.c b/ports/esp32s2/common-hal/wifi/Radio.c index bcbca0ec7..f7c431a56 100644 --- a/ports/esp32s2/common-hal/wifi/Radio.c +++ b/ports/esp32s2/common-hal/wifi/Radio.c @@ -146,6 +146,8 @@ wifi_radio_error_t common_hal_wifi_radio_connect(wifi_radio_obj_t *self, uint8_t // This will ensure that the best AP in range is chosen automatically if ((config->sta.bssid_set == 0) && (config->sta.channel == 0)) { config->sta.scan_method = WIFI_ALL_CHANNEL_SCAN; + } else { + config->sta.scan_method = WIFI_FAST_SCAN; } esp_wifi_set_config(ESP_IF_WIFI_STA, config); self->starting_retries = 5; |
