Fix duplicate applyStaConfig

This commit is contained in:
2021-07-28 14:27:56 +02:00
parent ae4fdabe89
commit 01189ca833

View File

@@ -1628,8 +1628,8 @@ bool buildConnectPlan(const config &config, const scan_result &scanResult)
toString(entry.bssid).c_str() toString(entry.bssid).c_str()
); );
_lastConnect = espchrono::millis_clock::now(); _lastConnect = espchrono::millis_clock::now();
if (const auto result = applyStaConfig(config); result != ESP_OK) //if (const auto result = applyStaConfig(config); result != ESP_OK)
ESP_LOGE(TAG, "applyStaConfig() failed with %s", esp_err_to_name(result)); // ESP_LOGE(TAG, "applyStaConfig() failed with %s", esp_err_to_name(result));
_wifiConnectFailCounter = 0; _wifiConnectFailCounter = 0;
if (const auto result = goe_wifi_sta_begin(config, entry.ssid, entry.key, entry.channel, entry.bssid); result != ESP_OK) if (const auto result = goe_wifi_sta_begin(config, entry.ssid, entry.key, entry.channel, entry.bssid); result != ESP_OK)
ESP_LOGE(TAG, "goe_wifi_sta_begin() failed with %s", esp_err_to_name(result)); ESP_LOGE(TAG, "goe_wifi_sta_begin() failed with %s", esp_err_to_name(result));