Add else case for non-bssid usage
This commit is contained in:
parent
1e3241ec6d
commit
1805e92038
|
@ -119,6 +119,8 @@ wifi_radio_error_t common_hal_wifi_radio_connect(wifi_radio_obj_t *self, uint8_t
|
|||
memcpy(&config->sta.bssid, bssid, bssid_len);
|
||||
config->sta.bssid[bssid_len] = 0;
|
||||
config->sta.bssid_set = 1;
|
||||
} else {
|
||||
config->sta.bssid_set = 0;
|
||||
}
|
||||
esp_wifi_set_config(ESP_IF_WIFI_STA, config);
|
||||
self->starting_retries = 5;
|
||||
|
|
Loading…
Reference in New Issue