summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Ribeiro <luizribeiro@gmail.com>2017-06-11 12:28:04 -0400
committerLuiz Ribeiro <luizribeiro@gmail.com>2017-06-11 12:30:48 -0400
commit60153e7bbc51e62c329cd55ea026340940c88104 (patch)
tree1d793c5d742097bf76f3ba17635db3a979248eeb
parent945f2f591649f1478ac0c24ca52950b7499f3eb5 (diff)
downloadqmk_firmware-60153e7bbc51e62c329cd55ea026340940c88104.tar.gz
qmk_firmware-60153e7bbc51e62c329cd55ea026340940c88104.zip
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.
-rw-r--r--keyboards/ps2avrGB/ps2avrGB.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/keyboards/ps2avrGB/ps2avrGB.c b/keyboards/ps2avrGB/ps2avrGB.c
index 7ff8998544..701c5847f5 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))