added first_time_sstv flag for sending sstv1 and sstv2

pico-v0.13
alanbjohnston 4 years ago committed by GitHub
parent 471631c82a
commit da5fa455f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -178,8 +178,12 @@ void loop() {
else if (mode == SSTV)
{
char image_file[128];
// strcpy(image_file, sstv1_filename);
strcpy(image_file, sstv2_filename);
if (first_time_sstv) {
strcpy(image_file, sstv1_filename);
first_time_sstv = false;
} else {
strcpy(image_file, sstv2_filename);
}
Serial.print("\nSending SSTV image ");
print_string(image_file);
// send_sstv("/cam.raw");
@ -310,8 +314,10 @@ void transmit_off() {
pwm_set_gpio_level(BPSK_PWM_A_PIN, 0);
pwm_set_gpio_level(BPSK_PWM_B_PIN, 0);
}
if (mode == SSTV)
if (mode == SSTV) {
first_time_sstv = true;
sstv_end();
}
}
void config_telem() {

Loading…
Cancel
Save

Powered by TurnKey Linux.