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

View File

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