fw: Render display immediately after the last byte has been received
This commit is contained in:
parent
87b3bf280f
commit
577ba83a58
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user