From 486778ed3fcbf58b957ea97120b1887a2e4ab063 Mon Sep 17 00:00:00 2001 From: jameszah <36938190+jameszah@users.noreply.github.com> Date: Tue, 4 Jan 2022 22:59:30 -0700 Subject: [PATCH] Jan 4 - more changes for 2.0.2 sd_mmc --- v58/ESP32-CAM-Video-Recorder-junior-58x.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/v58/ESP32-CAM-Video-Recorder-junior-58x.ino b/v58/ESP32-CAM-Video-Recorder-junior-58x.ino index c163a3c..61e4d9c 100644 --- a/v58/ESP32-CAM-Video-Recorder-junior-58x.ino +++ b/v58/ESP32-CAM-Video-Recorder-junior-58x.ino @@ -701,7 +701,7 @@ void delete_old_stuff() { void deleteFolderOrFile(const char * val) { // Function provided by user @gemi254 Serial.printf("Deleting : %s\n", val); - File f = SD_MMC.open(val); + File f = SD_MMC.open("/" + String(val)); if (!f) { Serial.printf("Failed to open %s\n", val); return; @@ -728,7 +728,7 @@ void deleteFolderOrFile(const char * val) { } f.close(); //Remove the dir - if (SD_MMC.rmdir(val)) { + if (SD_MMC.rmdir("/" + String(val))) { Serial.printf("Dir %s removed\n", val); } else { Serial.println("Remove dir failed"); @@ -736,7 +736,7 @@ void deleteFolderOrFile(const char * val) { } else { //Remove the file - if (SD_MMC.remove(val)) { + if (SD_MMC.remove("/" + String(val))) { Serial.printf("File %s deleted\n", val); } else { Serial.println("Delete failed"); @@ -2132,7 +2132,7 @@ void loop() { delay(20); read13 = read13 + digitalRead(13); // get 2 opinions to help poor soldering - if (IncludeInternet == 4) { // 4 is oppoiste of 3, so, flip read13 + if (IncludeInternet == 4 || IncludeInternet == 2) { // 4 is oppoiste of 3, so, flip read13 if (read13 > 0) { read13 = 0; } else {