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();