mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-26 20:56:37 +00:00
Format FS if needed
This commit is contained in:
parent
cbcefad900
commit
04209589a1
@ -42,7 +42,11 @@ void spiffsSetup()
|
|||||||
|
|
||||||
#if LV_USE_HASP_SPIFFS
|
#if LV_USE_HASP_SPIFFS
|
||||||
char msg[64];
|
char msg[64];
|
||||||
|
#if defined(ARDUINO_ARCH_ESP8266)
|
||||||
|
if(!SPIFFS.begin()) {
|
||||||
|
#else
|
||||||
if(!SPIFFS.begin(true)) {
|
if(!SPIFFS.begin(true)) {
|
||||||
|
#endif
|
||||||
sprintf(msg, PSTR("FILE: %sSPI flash init failed. Unable to mount FS."));
|
sprintf(msg, PSTR("FILE: %sSPI flash init failed. Unable to mount FS."));
|
||||||
errorPrintln(msg);
|
errorPrintln(msg);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user