Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 402ab56

Browse filesBrowse files
authored
fix(SPIFFS): Use new disableWDT bool return value (espressif#10909)
Analogue to this PR, but for SPIFFS: https://github.com/espressif/arduino-esp32/pull/10896/files
1 parent 732a7cb commit 402ab56
Copy full SHA for 402ab56

File tree

1 file changed

+4
-2
lines changed
Filter options

1 file changed

+4
-2
lines changed

‎libraries/SPIFFS/src/SPIFFS.cpp

Copy file name to clipboardExpand all lines: libraries/SPIFFS/src/SPIFFS.cpp
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,11 @@ void SPIFFSFS::end() {
9191
}
9292

9393
bool SPIFFSFS::format() {
94-
disableCore0WDT();
94+
bool wdt_active = disableCore0WDT();
9595
esp_err_t err = esp_spiffs_format(partitionLabel_);
96-
enableCore0WDT();
96+
if (wdt_active) {
97+
enableCore0WDT();
98+
}
9799
if (err) {
98100
log_e("Formatting SPIFFS failed! Error: %d", err);
99101
return false;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.