only print info if debug mode.

pico-v0.38-all
alanbjohnston 3 years ago committed by GitHub
parent 7cdc2f87d2
commit 6ae4bdb8e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -181,7 +181,7 @@ bool get_camera_image(bool debug_camera) {
// #ifdef GET_IMAGE_DEBUG // #ifdef GET_IMAGE_DEBUG
if (debug_camera) if (debug_camera)
Serial.println("Received from ESP32-CAM hex encoded:\n"); Serial.println("Received from ESP32-CAM (hex encoded part is JPG image):\n");
// #endif // #endif
finished = false; finished = false;
@ -190,7 +190,7 @@ bool get_camera_image(bool debug_camera) {
if (Serial2.available()) { // If anything comes in Serial2 if (Serial2.available()) { // If anything comes in Serial2
byte octet = Serial2.read(); byte octet = Serial2.read();
if (!start_flag_detected) if ((!start_flag_detected) && (debug_camera))
Serial.write(octet); Serial.write(octet);
if (start_flag_complete) { if (start_flag_complete) {

Loading…
Cancel
Save

Powered by TurnKey Linux.