From 0241d54cfcf665e6703c731c1f6863d875231a47 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Fri, 17 Feb 2023 16:12:43 -0500 Subject: [PATCH] Update esp32-cam.ino --- cubesatsim/esp32-cam/esp32-cam.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cubesatsim/esp32-cam/esp32-cam.ino b/cubesatsim/esp32-cam/esp32-cam.ino index 12495f38..0336ec6e 100644 --- a/cubesatsim/esp32-cam/esp32-cam.ino +++ b/cubesatsim/esp32-cam/esp32-cam.ino @@ -308,6 +308,7 @@ void load_files() { deleteFile(SPIFFS, "/sstv_image_2_320_x_240.jpg"); f = SPIFFS.open("/sstv_image_1_320_x_240.jpg", "r"); + f = false; // if (f) { if (false) { Serial.println("Image sstv_image_1_320_x_240.jpg already in FS"); @@ -324,6 +325,7 @@ void load_files() { } f = SPIFFS.open("/sstv_image_2_320_x_240.jpg", "r"); + f = false; if (f) { Serial.println("Image sstv_image_2_320_x_240.jpg already in FS"); f.close();