Browse Source

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.
pull/1335/head
Luiz Ribeiro 7 years ago
parent
commit
60153e7bbc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      keyboards/ps2avrGB/ps2avrGB.c

+ 1
- 1
keyboards/ps2avrGB/ps2avrGB.c 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))


Loading…
Cancel
Save