From c4155e1f9bd6aa97f040975d78ac0d3cb97f9b5e Mon Sep 17 00:00:00 2001 From: Marcus Date: Thu, 17 Oct 2024 02:35:04 +0200 Subject: [PATCH] basics of factory reset implemented --- Arduino/CanGrow/CanGrow.ino | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Arduino/CanGrow/CanGrow.ino b/Arduino/CanGrow/CanGrow.ino index 6f1590c..386956e 100644 --- a/Arduino/CanGrow/CanGrow.ino +++ b/Arduino/CanGrow/CanGrow.ino @@ -33,6 +33,7 @@ */ #include "include/CanGrow.h" +#include "include/CanGrow_Core.h" /* * Libraries @@ -101,6 +102,7 @@ void setup() { if(digitalRead(PinWIPE) == LOW) { Serial.println("!! formatting LittleFS !!"); LittleFS.format(); + Panic(); } @@ -119,7 +121,7 @@ void setup() { if(lfs_configfile) { Serial.println(":: LittleFS: config.json successfully created ::"); // write into the file - lfs_configfile.print("{test: 2}"); + lfs_configfile.print("{test: }"); // close the file lfs_configfile.close(); }