diff --git a/cubesatsim/esp32-cam-send-jpeg-serial/esp32-cam-send-jpeg-serial.ino b/cubesatsim/esp32-cam-send-jpeg-serial/esp32-cam-send-jpeg-serial.ino index 2c9d7163..9ba94de9 100644 --- a/cubesatsim/esp32-cam-send-jpeg-serial/esp32-cam-send-jpeg-serial.ino +++ b/cubesatsim/esp32-cam-send-jpeg-serial/esp32-cam-send-jpeg-serial.ino @@ -208,6 +208,8 @@ void setup() { } void loop() { + + Serial.println("ESP32-CAM Send JPG over Serial v0.2"); char filename[] = "/cam.jpg"; diff --git a/cubesatsim/pico-get-jpeg-serial.cpp b/cubesatsim/pico-get-jpeg-serial.cpp index 29b18162..5d0a8716 100644 --- a/cubesatsim/pico-get-jpeg-serial.cpp +++ b/cubesatsim/pico-get-jpeg-serial.cpp @@ -181,7 +181,7 @@ bool get_camera_image(bool debug_camera) { // #ifdef GET_IMAGE_DEBUG 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 finished = false; @@ -189,7 +189,9 @@ bool get_camera_image(bool debug_camera) { while ((!finished) && ((millis() - time_start) < CAMERA_TIMEOUT)) { if (Serial2.available()) { // If anything comes in Serial2 - byte octet = Serial2.read(); + byte octet = Serial2.read(); + if ((!start_flag_detected) && (debug_camera)) + Serial.write(octet); if (start_flag_complete) { // Serial.println("Start flag complete detected");