Skip to content

Commit

Permalink
Report when WiFi cannot be disconnected
Browse files Browse the repository at this point in the history
  • Loading branch information
lptr committed Nov 30, 2024
1 parent d2fb0e9 commit 2ef3b9d
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 @@ -180,7 +180,9 @@ class WiFiDriver {

void disconnect() {
networkReady.clear();
WiFi.disconnect(true);
if (!WiFi.disconnect(true)) {
Log.error("WiFi: failed to shut down");
}
}

StateSource& acquire() {
Expand Down

0 comments on commit 2ef3b9d

Please sign in to comment.