Add formatting of the SPIFFS in case the file system could not be mounted
This commit is contained in:
@@ -158,7 +158,11 @@ void setup() {
|
|||||||
|
|
||||||
|
|
||||||
ts.begin();
|
ts.begin();
|
||||||
SPIFFS.begin();
|
|
||||||
|
bool isFSMounted = SPIFFS.begin();
|
||||||
|
if (!isFSMounted) {
|
||||||
|
SPIFFS.format();
|
||||||
|
}
|
||||||
//SPIFFS.remove("/calibration.txt");
|
//SPIFFS.remove("/calibration.txt");
|
||||||
boolean isCalibrationAvailable = touchController.loadCalibration();
|
boolean isCalibrationAvailable = touchController.loadCalibration();
|
||||||
if (!isCalibrationAvailable) {
|
if (!isCalibrationAvailable) {
|
||||||
|
|||||||
Reference in New Issue
Block a user