We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 023ae75 commit 4365a45Copy full SHA for 4365a45
libraries/WiFi/src/WiFiGeneric.cpp
@@ -577,9 +577,9 @@ bool wifiLowLevelInit(bool persistent){
577
578
static bool wifiLowLevelDeinit(){
579
if(lowLevelInitDone){
580
- lowLevelInitDone = esp_wifi_deinit() == ESP_OK;
+ lowLevelInitDone = !(esp_wifi_deinit() == ESP_OK);
581
}
582
- return true;
+ return !lowLevelInitDone;
583
584
585
static bool _esp_wifi_started = false;
0 commit comments