diff --git a/cubesatsim/pico-get-jpeg-serial.cpp b/cubesatsim/pico-get-jpeg-serial.cpp index 6d3e4433..14f9424c 100644 --- a/cubesatsim/pico-get-jpeg-serial.cpp +++ b/cubesatsim/pico-get-jpeg-serial.cpp @@ -178,7 +178,8 @@ bool get_camera_image() { Serial.println("Starting get_image_file"); #endif finished = false; - Serial2.println(1); + Serial2.println("\r\n"); + Serial2.fflush(); Serial.println("writing to Serial2"); unsigned long time_start = millis(); while ((!finished) && ((millis() - time_start) < CAMERA_TIMEOUT)) { @@ -272,7 +273,8 @@ bool get_camera_image() { // Serial.println("Resetting. Not start flag."); } } - Serial2.println(1); + Serial2.println("\r\n"); + Serial2.fflush(); // Serial.println("writing to Serial2"); } return(finished);