delete sstv files

pico-sstv-new-1
alanbjohnston 3 years ago committed by GitHub
parent 0c0d667c73
commit 56cb2e9b0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;
}

Loading…
Cancel
Save

Powered by TurnKey Linux.