From 475c9cdd4a6dde5d84fa6baeae2eb1c9854e5737 Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Thu, 30 Jul 2020 16:23:23 +0200 Subject: [PATCH] fw: Fix noisy picture? Had noise artifacts on the OLED display... and for some reason, this commit fixes it. But, I mean, WTF?! --- firmware/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/main.c b/firmware/main.c index 39bfe24..18f8fde 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -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;