From 56cb2e9b0f19befa44083c03700a447e00a70ac0 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 16 Oct 2022 11:05:11 -0400 Subject: [PATCH] delete sstv files --- cubesatsim/cubesatsim.ino | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index 1a569268..22aad1ee 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -210,7 +210,12 @@ void loop() { else if (mode == SSTV) { bool stored_image = false; -// first_time_sstv = false; +// first_time_sstv = false; + LITTLEFS.remove("/cam.jpg"); + LITTLEFS.remove("/cam.bin"); + LITTLEFS.remove("/cam2.bin"); + LITTLEFS.remove(sstv1_filename); + Serial.println("SSTV files deleted"); char image_file[128]; if (first_time_sstv) { // if (false) { // turn this off for now @@ -226,6 +231,7 @@ void loop() { strcpy(image_file, camera_file); } else { Serial.println("Using stored image"); + load_images(); strcpy(image_file, sstv1_filename); // 2nd stored image stored_image = true; }