Update pico-get-jpeg-serial.cpp

pico-fc-test
alanbjohnston 3 years ago committed by GitHub
parent 45655a9ff3
commit e37400b651
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);

Loading…
Cancel
Save

Powered by TurnKey Linux.