Skip to content

Commit

Permalink
Keep WiFi on while provisioning finishes
Browse files Browse the repository at this point in the history
  • Loading branch information
lptr committed Dec 2, 2024
1 parent 2c7f4a8 commit fe35077
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main/kernel/drivers/WiFiDriver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -180,6 +181,7 @@ class WiFiDriver {
case WIFI_PROV_END: {
Log.debug("WiFi: provisioning finished");
configPortalRunning.clear();
release();
break;
}
}
Expand Down

0 comments on commit fe35077

Please sign in to comment.