From 60153e7bbc51e62c329cd55ea026340940c88104 Mon Sep 17 00:00:00 2001 From: Luiz Ribeiro Date: Sun, 11 Jun 2017 12:28:04 -0400 Subject: [PATCH] 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. --- keyboards/ps2avrGB/ps2avrGB.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyboards/ps2avrGB/ps2avrGB.c b/keyboards/ps2avrGB/ps2avrGB.c index 7ff8998544c..701c5847f53 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))