turn back on first time on SSTV

pico-v0.33-serial
alanbjohnston 3 years ago committed by GitHub
parent a1f0c4714b
commit 054176e712
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -224,11 +224,13 @@ void loop() {
} }
else if (mode == SSTV) else if (mode == SSTV)
{ {
first_time_sstv = false; // first_time_sstv = false;
char image_file[128]; char image_file[128];
if (first_time_sstv) { if (first_time_sstv) {
// if (false) { // turn this off for now // if (false) { // turn this off for now
strcpy(image_file, sstv1_filename); // strcpy(image_file, sstv1_filename);
Serial.println("Using stored image file");
load_sstv_image_1_as_cam_dot_jpg();
first_time_sstv = false; first_time_sstv = false;
} else { } else {
if (camera_detected = get_camera_image()) { if (camera_detected = get_camera_image()) {
@ -239,7 +241,7 @@ void loop() {
} else { } else {
// strcpy(image_file, sstv1_filename); // 2nd stored image // strcpy(image_file, sstv1_filename); // 2nd stored image
Serial.println("Using stored image file"); Serial.println("Using stored image file");
load_sstv_image_1_as_cam_dot_jpg(); load_sstv_image_2_as_cam_dot_jpg();
} }
} }
/* /*

Loading…
Cancel
Save

Powered by TurnKey Linux.