From 48eed265c08488c167ef365ac4036c9522bd1491 Mon Sep 17 00:00:00 2001 From: jesse Date: Tue, 22 Dec 2020 17:06:18 -0500 Subject: [PATCH] oops array indexing was off --- src/display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/display.c b/src/display.c index 2965592..7c73ca6 100644 --- a/src/display.c +++ b/src/display.c @@ -67,7 +67,7 @@ static void lines(const uint16_t line[chips*12]) uint16_t tmp[12]; for (int i = 0; i < chips; i++){ for(int b = 0; b < 12;b++) - tmp[11 - b] = line[i]; + tmp[11 - b] = line[(i*12)+b]; tlc59711_create(tmp, data + (28 * i)); } -- 2.42.0