Fix WiFi Deinit bug
Fixes: https://github.com/espressif/arduino-esp32/issues/4842
This commit is contained in:
parent
023ae75b97
commit
4365a45401
@ -577,9 +577,9 @@ bool wifiLowLevelInit(bool persistent){
|
||||
|
||||
static bool wifiLowLevelDeinit(){
|
||||
if(lowLevelInitDone){
|
||||
lowLevelInitDone = esp_wifi_deinit() == ESP_OK;
|
||||
lowLevelInitDone = !(esp_wifi_deinit() == ESP_OK);
|
||||
}
|
||||
return true;
|
||||
return !lowLevelInitDone;
|
||||
}
|
||||
|
||||
static bool _esp_wifi_started = false;
|
||||
|
Loading…
Reference in New Issue
Block a user