diff --git a/cubesatsim/pico-get-jpeg-serial.cpp b/cubesatsim/pico-get-jpeg-serial.cpp index 14f9424c..d0bddcff 100644 --- a/cubesatsim/pico-get-jpeg-serial.cpp +++ b/cubesatsim/pico-get-jpeg-serial.cpp @@ -179,7 +179,7 @@ bool get_camera_image() { #endif finished = false; Serial2.println("\r\n"); - Serial2.fflush(); + Serial2.flush(); Serial.println("writing to Serial2"); unsigned long time_start = millis(); while ((!finished) && ((millis() - time_start) < CAMERA_TIMEOUT)) { @@ -274,7 +274,7 @@ bool get_camera_image() { } } Serial2.println("\r\n"); - Serial2.fflush(); + Serial2.flush(); // Serial.println("writing to Serial2"); } return(finished);