1
0
Fork 0

Always send 3 * RGBLED_NUM bytes through I2C on ps2avrGB

This wasn't going to work on boards with a different number of LEDs,
since I was always sending 48 bytes.
This commit is contained in:
Luiz Ribeiro 2017-06-11 12:28:04 -04:00
parent 945f2f5916
commit 60153e7bbc

View file

@ -36,7 +36,7 @@ void rgblight_set(void) {
} }
i2c_init(); i2c_init();
i2c_send(0xb0, (uint8_t*)led, 48); i2c_send(0xb0, (uint8_t*)led, 3 * RGBLED_NUM);
} }
__attribute__ ((weak)) __attribute__ ((weak))