From: jesse Date: Tue, 22 Dec 2020 22:06:18 +0000 (-0500) Subject: oops array indexing was off X-Git-Url: https://repo.jachan.dev/pov-display-rpi.git/commitdiff_plain/48eed265c08488c167ef365ac4036c9522bd1491 oops array indexing was off --- 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)); }