Skip to content

Commit f4628c2

Browse files
committed
Fix "SPIFFS: mount failed" by setting formatOnFail to true (see espressif/arduino-esp32#638)
1 parent 2c3ab0a commit f4628c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Homie/Config.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Config::Config()
1010

1111
bool Config::_spiffsBegin() {
1212
if (!_spiffsBegan) {
13-
_spiffsBegan = SPIFFS.begin();
13+
_spiffsBegan = SPIFFS.begin(true);
1414
if (!_spiffsBegan) Interface::get().getLogger() << F("✖ Cannot mount filesystem") << endl;
1515
}
1616

0 commit comments

Comments
 (0)