exit SSTV if mode is changed

pico-v0.37
alanbjohnston 3 years ago committed by GitHub
parent 2919a4c471
commit c58ca940f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -246,8 +246,9 @@ void loop() {
Serial.println("Sending SSTV using ESP32-CAM");
digitalWrite(PTT_PIN, LOW); // start transmit
transmit_led(HIGH);
while(true) {}
while(mode == SSTV) {}
Serial.println("Finished SSTV");
/*
// first_time_sstv = false;
char image_file[128];
if (first_time_sstv) {
@ -268,12 +269,12 @@ void loop() {
load_sstv_image_2_as_cam_dot_jpg();
}
}
/*
if (debug_mode) {
Serial.print("\nSending SSTV image ");
print_string(image_file);
}
*/
// if (debug_mode) {
// Serial.print("\nSending SSTV image ");
// print_string(image_file);
// }
// send_sstv("/cam.raw");
// send_sstv(image_file);
@ -313,6 +314,7 @@ void loop() {
if (debug_mode)
Serial.println("\nImage sent!");
}
*/
}
else
Serial.println("Unknown mode!");

Loading…
Cancel
Save

Powered by TurnKey Linux.