Skip to content

Commit

Permalink
Do not stop WiFi while provisioning
Browse files Browse the repository at this point in the history
  • Loading branch information
lptr committed Dec 11, 2024
1 parent 5e5033b commit 3ef65c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/kernel/drivers/WiFiDriver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class WiFiDriver {
for (auto event = eventQueue.pollIn(WIFI_CHECK_INTERVAL); event.has_value(); event = eventQueue.poll()) {
switch (event.value()) {
case WiFiEvent::STARTED:
if (networkRequested.isSet()) {
if (networkRequested.isSet() && !configPortalRunning.isSet()) {
esp_err_t err = esp_wifi_connect();
if (err != ESP_OK) {
LOGTD("wifi", "Failed to start connecting: %s", esp_err_to_name(err));
Expand Down

0 comments on commit 3ef65c2

Please sign in to comment.