We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 732a7cb commit 402ab56Copy full SHA for 402ab56
libraries/SPIFFS/src/SPIFFS.cpp
@@ -91,9 +91,11 @@ void SPIFFSFS::end() {
91
}
92
93
bool SPIFFSFS::format() {
94
- disableCore0WDT();
+ bool wdt_active = disableCore0WDT();
95
esp_err_t err = esp_spiffs_format(partitionLabel_);
96
- enableCore0WDT();
+ if (wdt_active) {
97
+ enableCore0WDT();
98
+ }
99
if (err) {
100
log_e("Formatting SPIFFS failed! Error: %d", err);
101
return false;
0 commit comments