From 52cd7d469fdf9a6b8df6501190492af843913b21 Mon Sep 17 00:00:00 2001 From: Marcus Date: Sat, 19 Oct 2024 02:52:17 +0200 Subject: [PATCH] remove old stuff --- Arduino/CanGrow/CanGrow.ino | 30 ++---------------------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/Arduino/CanGrow/CanGrow.ino b/Arduino/CanGrow/CanGrow.ino index 989f12c..9ea5beb 100644 --- a/Arduino/CanGrow/CanGrow.ino +++ b/Arduino/CanGrow/CanGrow.ino @@ -100,7 +100,7 @@ void setup() { Serial.println(" - NOW! (2 seconds left) II"); - // blink with the onboard LED on D4 (PinWIPE) + // blink with the onboard LED on D4/GPIO2 (PinWIPE) for(byte i = 0; i <= 6 ; i++) { if(i % 2) { digitalWrite(PinWIPE, LOW); @@ -136,33 +136,7 @@ void setup() { Serial.printf(":: After config.test: %s\n", config.test); Serial.print(":: After configWifi.dhcp: "); Serial.println(configWifi.dhcp); - // read the configfile from LittleFS -/* File lfs_configfile = LittleFS.open(configfile, "r"); - if(!lfs_configfile) { - Serial.println("!! LittleFS: config.json not found, creating it !!"); - lfs_configfile.close(); - lfs_configfile = LittleFS.open(configfile, "w"); - lfs_configfile.close(); - if(lfs_configfile) { - Serial.println(":: LittleFS: config.json successfully created"); - // write into the file - lfs_configfile.print("{test: }"); - // close the file - lfs_configfile.close(); - } - } else { - Serial.println(":: LittleFS: config.json successfully opened"); - String configfile_content = ""; - - while (lfs_configfile.available()) { - configfile_content += (char)lfs_configfile.read(); - } - - Serial.println("-- LittleFS: config.json content --"); - Serial.println(configfile_content); - Serial.println("-- LittleFS: config.json end --"); - } -*/ + } bool alrdySaved = false;