Add else case for non-bssid usage

This commit is contained in:
Ryan T. Hamilton 2020-09-17 15:04:27 -07:00
parent 1e3241ec6d
commit 1805e92038
1 changed files with 2 additions and 0 deletions

View File

@ -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;