From: Luiz Ribeiro Date: Sun, 11 Jun 2017 16:28:04 +0000 (-0400) Subject: Always send 3 * RGBLED_NUM bytes through I2C on ps2avrGB X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=60153e7bbc51e62c329cd55ea026340940c88104;p=qmk_firmware.git 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. --- diff --git a/keyboards/ps2avrGB/ps2avrGB.c b/keyboards/ps2avrGB/ps2avrGB.c index 7ff899854..701c5847f 100644 --- a/keyboards/ps2avrGB/ps2avrGB.c +++ b/keyboards/ps2avrGB/ps2avrGB.c @@ -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))