force a format of flash storage

pico-fc-test
alanbjohnston 3 years ago committed by GitHub
parent 26e3dee2a3
commit cc4f2f1dd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -198,8 +198,9 @@ void setup() {
// crc.setPolynome(0x1021);
// if (!SPIFFS.begin(FORMAT_SPIFFS_IF_FAILED)) {
if (!SPIFFS.begin(FORMAT_SPIFFS)) {
SPIFFS.format(); // force a format of flash storage
if (!SPIFFS.begin(FORMAT_SPIFFS_IF_FAILED)) {
Serial.println("SPIFFS Mount Failed");
return;
}

Loading…
Cancel
Save

Powered by TurnKey Linux.