fw: Render display immediately after the last byte has been received

This commit is contained in:
Markus Koch 2020-08-08 16:54:51 +02:00
parent 87b3bf280f
commit 577ba83a58

View File

@ -47,7 +47,9 @@ uint8_t spi_proc()
x++; x++;
if (x == DISPLAY_WIDTH) { if (x == DISPLAY_WIDTH) {
x = 0; x = 0;
y = Y_MAX;
new_data = 1; // Only update the display if a full frame was received new_data = 1; // Only update the display if a full frame was received
lcd_display();
} }
} else { } else {
y--; y--;
@ -55,7 +57,6 @@ uint8_t spi_proc()
} }
} else { } else {
if (new_data) { if (new_data) {
lcd_display();
new_data = 0; new_data = 0;
} else if ((y == Y_MAX - 3) && (x == 0)) { // If the last one was a I/O frame } else if ((y == Y_MAX - 3) && (x == 0)) { // If the last one was a I/O frame
input_clear_events(); input_clear_events();