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.
daktil_thumb_popravljen
Luiz Ribeiro 2017-06-11 12:28:04 -04:00
parent 945f2f5916
commit 60153e7bbc
1 changed files with 1 additions and 1 deletions

View File

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