fix(SPIFFS): Use new disableWDT bool return value (#10909)

Analogue to this PR, but for SPIFFS: https://github.com/espressif/arduino-esp32/pull/10896/files
This commit is contained in:
TD-er 2025-01-30 18:12:07 +01:00 committed by GitHub
parent 732a7cb4ee
commit 402ab56bf1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -91,9 +91,11 @@ void SPIFFSFS::end() {
}
bool SPIFFSFS::format() {
disableCore0WDT();
bool wdt_active = disableCore0WDT();
esp_err_t err = esp_spiffs_format(partitionLabel_);
if (wdt_active) {
enableCore0WDT();
}
if (err) {
log_e("Formatting SPIFFS failed! Error: %d", err);
return false;