Merge pull request #254 from alanbjohnston/pico-v0.35-i2c

add jpeg_decode conditional
pico-v0.35
alanbjohnston 3 years ago committed by GitHub
commit 9733b0a210
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -265,7 +265,7 @@ void loop() {
// char output_file2[] = "/cam2.bin"; // char output_file2[] = "/cam2.bin";
char output_file[] = "/cam.bin"; char output_file[] = "/cam.bin";
// jpeg_decode(image_file, output_file, true); // debug_mode); // jpeg_decode(image_file, output_file, true); // debug_mode);
jpeg_decode(input_file, output_file, false); // debug_mode); if (jpeg_decode(input_file, output_file, false)) { // only transmit if jpeg decode successful
show_dir(); show_dir();
// char telem_display[] = " BATT: STATUS: TEMP: "; // char telem_display[] = " BATT: STATUS: TEMP: ";
@ -294,7 +294,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.