Format FS if needed

This commit is contained in:
fvanroie 2020-02-01 20:03:37 +01:00
parent cbcefad900
commit 04209589a1

View File

@ -42,7 +42,11 @@ void spiffsSetup()
#if LV_USE_HASP_SPIFFS
char msg[64];
#if defined(ARDUINO_ARCH_ESP8266)
if(!SPIFFS.begin()) {
#else
if(!SPIFFS.begin(true)) {
#endif
sprintf(msg, PSTR("FILE: %sSPI flash init failed. Unable to mount FS."));
errorPrintln(msg);
} else {