mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 12:06:26 +01:00
Fix compilation error for WPA enterprise in ESP-IDF (#2815)
This commit is contained in:
parent
3d5e1d8d91
commit
50ec1d0445
@ -375,8 +375,7 @@ bool WiFiComponent::wifi_sta_connect_(const WiFiAP &ap) {
|
|||||||
ESP_LOGV(TAG, "esp_wifi_sta_wpa2_ent_set_password failed! %d", err);
|
ESP_LOGV(TAG, "esp_wifi_sta_wpa2_ent_set_password failed! %d", err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
esp_wpa2_config_t wpa2_config = WPA2_CONFIG_INIT_DEFAULT();
|
err = esp_wifi_sta_wpa2_ent_enable();
|
||||||
err = esp_wifi_sta_wpa2_ent_enable(&wpa2_config);
|
|
||||||
if (err != ESP_OK) {
|
if (err != ESP_OK) {
|
||||||
ESP_LOGV(TAG, "esp_wifi_sta_wpa2_ent_enable failed! %d", err);
|
ESP_LOGV(TAG, "esp_wifi_sta_wpa2_ent_enable failed! %d", err);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user