fw: Fix noisy picture?

Had noise artifacts on the OLED display... and for some reason,
this commit fixes it. But, I mean, WTF?!
This commit is contained in:
Markus Koch 2020-07-30 16:23:23 +02:00
parent 1eaa9c3c38
commit 475c9cdd4a
1 changed files with 2 additions and 2 deletions

View File

@ -31,12 +31,12 @@ uint8_t spi_proc()
if (spi_cs) {
if (SPSR & (1 << SPIF)) {
SPDR = spdr_next;
switch (y) {
case Y_MAX:
case Y_MAX - 1:
spdr_next = 55; // TODO: Vbat
break;
}
SPDR = spdr_next;
lcd_set_buffer(x, y, SPDR);
if (y == 0) {
y = Y_MAX;