diff --git a/src/I2SClocklessLedDriver.h b/src/I2SClocklessLedDriver.h index 3d8681b..b24a113 100644 --- a/src/I2SClocklessLedDriver.h +++ b/src/I2SClocklessLedDriver.h @@ -270,7 +270,6 @@ enum displayMode { /* int MOD(int a, int b) { - if (a < 0) { if (-a % b == 0) @@ -737,12 +736,11 @@ putdefaultones((uint16_t *)DMABuffersTampon[1]->buffer); uint8_t *poli = leds + ledToDisplay * nb_components; for (int i = 0; i < num_strips; i++) { - secondPixel[p_g].bytes[i] = __green_map[*(poli + 1)]; secondPixel[p_r].bytes[i] = __red_map[*(poli + 0)]; secondPixel[p_b].bytes[i] = __blue_map[*(poli + 2)]; if (nb_components > 3) - secondPixel[3].bytes[i] = __white_map[*(poli + 3)]; + secondPixel[p_w].bytes[i] = __white_map[*(poli + 3)]; //#endif poli += num_led_per_strip * nb_components; }