From 1936a60e2db94d03d9521e81198c3065951ea837 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Wed, 14 Dec 2022 13:56:13 -0500 Subject: [PATCH] changed to Serial2.println --- cubesatsim/pico-get-jpeg-serial.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cubesatsim/pico-get-jpeg-serial.cpp b/cubesatsim/pico-get-jpeg-serial.cpp index 44a7b685..6b2e510c 100644 --- a/cubesatsim/pico-get-jpeg-serial.cpp +++ b/cubesatsim/pico-get-jpeg-serial.cpp @@ -178,7 +178,7 @@ bool get_camera_image() { Serial.println("Starting get_image_file"); #endif finished = false; - Serial2.write(1); + Serial2.println(1); Serial.println("writing to Serial2"); unsigned long time_start = millis(); while ((!finished) && ((millis() - time_start) < CAMERA_TIMEOUT)) { @@ -272,7 +272,7 @@ bool get_camera_image() { // Serial.println("Resetting. Not start flag."); } } - Serial2.write(1); + Serial2.println(1); Serial.println("writing to Serial2"); } return(finished);