From 9eca4d694de7c5d76a52168cd40a64e055e8a2cf Mon Sep 17 00:00:00 2001 From: fvanroie Date: Sat, 1 Feb 2020 00:43:07 +0100 Subject: [PATCH] Initialize spiffs on first mount --- src/hasp_spiffs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hasp_spiffs.cpp b/src/hasp_spiffs.cpp index 1ecff2eb..3aeac636 100644 --- a/src/hasp_spiffs.cpp +++ b/src/hasp_spiffs.cpp @@ -42,7 +42,7 @@ void spiffsSetup() #if LV_USE_HASP_SPIFFS char msg[64]; - if(!SPIFFS.begin()) { + if(!SPIFFS.begin(true)) { sprintf(msg, PSTR("FILE: %sSPI flash init failed. Unable to mount FS.")); errorPrintln(msg); } else {