From 54e62eb1a7d57050b1ba03c4307060df037966c6 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 27 Jul 2025 12:25:05 -0400 Subject: [PATCH] Update main.c count discards --- main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 0a62003d..ad650323 100644 --- a/main.c +++ b/main.c @@ -2103,13 +2103,15 @@ int get_payload_serial(int debug_camera) { jpeg_start = 0; // serialFlush (uart_fd); // flush serial buffer so latest payload is read - + int discard = 0; while (serialDataAvail(uart_fd)) { (void) serialGetchar(uart_fd); + discard++; // printf("%c", octet); // fflush(stdout); } - + printf("\ndiscard: %d \n\n", discard); + // #ifdef GET_IMAGE_DEBUG if (debug_camera) printf("Received from Payload:\n");