|
|
|
@ -2142,13 +2142,15 @@ void loop() {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
int get_payload_serial(int debug_camera) {
|
|
|
|
int get_payload_serial(int debug_camera) {
|
|
|
|
|
|
|
|
|
|
|
|
index1 = 0;
|
|
|
|
index1 = 0;
|
|
|
|
flag_count = 0;
|
|
|
|
flag_count = 0;
|
|
|
|
start_flag_detected = FALSE;
|
|
|
|
start_flag_detected = FALSE;
|
|
|
|
start_flag_complete = FALSE;
|
|
|
|
start_flag_complete = FALSE;
|
|
|
|
end_flag_detected = FALSE;
|
|
|
|
end_flag_detected = FALSE;
|
|
|
|
jpeg_start = 0;
|
|
|
|
jpeg_start = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
serialFlush (uart_fd); // flush serial buffer so latest payload is read
|
|
|
|
|
|
|
|
|
|
|
|
// #ifdef GET_IMAGE_DEBUG
|
|
|
|
// #ifdef GET_IMAGE_DEBUG
|
|
|
|
if (debug_camera)
|
|
|
|
if (debug_camera)
|
|
|
|
|