mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-04 06:16:35 +02:00
Fix WiFi Deinit bug
Fixes: https://github.com/espressif/arduino-esp32/issues/4842
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user