change filenames if stored image

pico-sstv
alanbjohnston 3 years ago committed by GitHub
parent 94119a7e2f
commit 89ffb3fe70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -236,19 +236,20 @@ void loop() {
// send_sstv(image_file);
// LittleFS.remove("/cam.bin");
show_dir();
char output_file2[] = "/cam2.bin";
jpeg_decode(image_file, output_file2, true); // debug_mode);
show_dir();
char telem_display[] = " BATT: STATUS: TEMP: ";
show_dir();
char output_file[] = "/cam.bin";
digitalWrite(PTT_PIN, HIGH); // shouldn't need this but
if (!stored_image) {
char output_file2[] = "/cam2.bin";
if (!stored_image) {
jpeg_decode(image_file, output_file2, true); // debug_mode);
show_dir();
char telem_display[] = " BATT: STATUS: TEMP: ";
digitalWrite(PTT_PIN, HIGH); // shouldn't need this but
Serial.println("Rotating image (takes 30 seconds)");
rotate_image(output_file2, output_file, telem_display);
rotate_image(output_file2, output_file, telem_display);
}
show_dir();
else
jpeg_decode(image_file, output_file, true); // debug_mode);
show_dir();
if (debug_mode)
Serial.println("Start transmit!!!");
digitalWrite(PTT_PIN, LOW); // start transmit

Loading…
Cancel
Save

Powered by TurnKey Linux.