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"); Serial.println("Sending SSTV using ESP32-CAM");
digitalWrite(PTT_PIN, LOW); // start transmit digitalWrite(PTT_PIN, LOW); // start transmit
transmit_led(HIGH); transmit_led(HIGH);
while(true) {} while(mode == SSTV) {}
Serial.println("Finished 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) {
@ -268,12 +269,12 @@ void loop() {
load_sstv_image_2_as_cam_dot_jpg(); load_sstv_image_2_as_cam_dot_jpg();
} }
} }
/*
if (debug_mode) { // if (debug_mode) {
Serial.print("\nSending SSTV image "); // Serial.print("\nSending SSTV image ");
print_string(image_file); // print_string(image_file);
} // }
*/
// send_sstv("/cam.raw"); // send_sstv("/cam.raw");
// send_sstv(image_file); // send_sstv(image_file);
@ -313,6 +314,7 @@ void loop() {
if (debug_mode) if (debug_mode)
Serial.println("\nImage sent!"); Serial.println("\nImage sent!");
} }
*/
} }
else else
Serial.println("Unknown mode!"); Serial.println("Unknown mode!");

Loading…
Cancel
Save

Powered by TurnKey Linux.