basics of factory reset implemented
This commit is contained in:
parent
4c57546657
commit
c4155e1f9b
1 changed files with 3 additions and 1 deletions
|
@ -33,6 +33,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "include/CanGrow.h"
|
#include "include/CanGrow.h"
|
||||||
|
#include "include/CanGrow_Core.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Libraries
|
* Libraries
|
||||||
|
@ -101,6 +102,7 @@ void setup() {
|
||||||
if(digitalRead(PinWIPE) == LOW) {
|
if(digitalRead(PinWIPE) == LOW) {
|
||||||
Serial.println("!! formatting LittleFS !!");
|
Serial.println("!! formatting LittleFS !!");
|
||||||
LittleFS.format();
|
LittleFS.format();
|
||||||
|
Panic();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -119,7 +121,7 @@ void setup() {
|
||||||
if(lfs_configfile) {
|
if(lfs_configfile) {
|
||||||
Serial.println(":: LittleFS: config.json successfully created ::");
|
Serial.println(":: LittleFS: config.json successfully created ::");
|
||||||
// write into the file
|
// write into the file
|
||||||
lfs_configfile.print("{test: 2}");
|
lfs_configfile.print("{test: }");
|
||||||
// close the file
|
// close the file
|
||||||
lfs_configfile.close();
|
lfs_configfile.close();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue