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