]> Git Repo - pov-display-rpi.git/commitdiff
oops array indexing was off
authorjesse <[email protected]>
Tue, 22 Dec 2020 22:06:18 +0000 (17:06 -0500)
committerjesse <[email protected]>
Tue, 22 Dec 2020 22:06:18 +0000 (17:06 -0500)
src/display.c

index 296559291278613857bb88c76e6128ac4dc01c45..7c73ca64e4152332d93828e83804ebccc64ea1d0 100644 (file)
@@ -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++)
     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));
     }
 
         tlc59711_create(tmp, data + (28 * i));
     }
This page took 0.02574 seconds and 4 git commands to generate.