From 577ba83a586ceef83e689a19639deee90cb5ef62 Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Sat, 8 Aug 2020 16:54:51 +0200 Subject: [PATCH] fw: Render display immediately after the last byte has been received --- firmware/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/firmware/main.c b/firmware/main.c index 98842d6..022e12e 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -47,7 +47,9 @@ uint8_t spi_proc() x++; if (x == DISPLAY_WIDTH) { x = 0; + y = Y_MAX; new_data = 1; // Only update the display if a full frame was received + lcd_display(); } } else { y--; @@ -55,7 +57,6 @@ uint8_t spi_proc() } } else { if (new_data) { - lcd_display(); new_data = 0; } else if ((y == Y_MAX - 3) && (x == 0)) { // If the last one was a I/O frame input_clear_events();