Skip to content

Commit

Permalink
fix(SPIFFS): Use new disableWDT bool return value (espressif#10909)
Browse files Browse the repository at this point in the history
  • Loading branch information
TD-er authored Jan 30, 2025
1 parent 732a7cb commit 402ab56
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libraries/SPIFFS/src/SPIFFS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@ void SPIFFSFS::end() {
}

bool SPIFFSFS::format() {
disableCore0WDT();
bool wdt_active = disableCore0WDT();
esp_err_t err = esp_spiffs_format(partitionLabel_);
enableCore0WDT();
if (wdt_active) {
enableCore0WDT();
}
if (err) {
log_e("Formatting SPIFFS failed! Error: %d", err);
return false;
Expand Down

0 comments on commit 402ab56

Please sign in to comment.