From fe350775df14a2d7c66ecf954117c11b29509d55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=B3r=C3=A1nt=20Pint=C3=A9r?= Date: Mon, 2 Dec 2024 14:11:36 +0100 Subject: [PATCH] Keep WiFi on while provisioning finishes --- main/kernel/drivers/WiFiDriver.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/kernel/drivers/WiFiDriver.hpp b/main/kernel/drivers/WiFiDriver.hpp index efea232f..3f170fa9 100644 --- a/main/kernel/drivers/WiFiDriver.hpp +++ b/main/kernel/drivers/WiFiDriver.hpp @@ -155,7 +155,8 @@ class WiFiDriver { switch (eventId) { case WIFI_PROV_START: { Log.debug("WiFi: provisioning started"); - // configPortalRunning.set(); + // Do not turn WiFi off until provisioning finishes + acquire(); break; } case WIFI_PROV_CRED_RECV: { @@ -180,6 +181,7 @@ class WiFiDriver { case WIFI_PROV_END: { Log.debug("WiFi: provisioning finished"); configPortalRunning.clear(); + release(); break; } }