From 01189ca83367d67acb1072e3eceb308759061bd8 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Wed, 28 Jul 2021 14:27:56 +0200 Subject: [PATCH] Fix duplicate applyStaConfig --- src/espwifistack.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/espwifistack.cpp b/src/espwifistack.cpp index afd5375..fb44638 100644 --- a/src/espwifistack.cpp +++ b/src/espwifistack.cpp @@ -1628,8 +1628,8 @@ bool buildConnectPlan(const config &config, const scan_result &scanResult) toString(entry.bssid).c_str() ); _lastConnect = espchrono::millis_clock::now(); - if (const auto result = applyStaConfig(config); result != ESP_OK) - ESP_LOGE(TAG, "applyStaConfig() failed with %s", esp_err_to_name(result)); + //if (const auto result = applyStaConfig(config); result != ESP_OK) + // ESP_LOGE(TAG, "applyStaConfig() failed with %s", esp_err_to_name(result)); _wifiConnectFailCounter = 0; 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));