Browse Source

Fix rgb matrix compilation

pull/3264/head
Fred Sundvik 5 years ago
parent
commit
19e0bc852f
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      quantum/rgb_matrix.c

+ 2
- 1
quantum/rgb_matrix.c View File

@ -119,7 +119,8 @@ void rgb_matrix_set_color_all( uint8_t red, uint8_t green, uint8_t blue ) {
bool process_rgb_matrix(uint16_t keycode, keyrecord_t *record) {
if ( record->event.pressed ) {
uint8_t led[8], led_count;
map_row_column_to_led(record->event.key.row, record->event.key.col, led, &led_count);
// TODO: Support multi-matrix keyboards
map_row_column_to_led(record->event.key.pos.row, record->event.key.pos.col, led, &led_count);
if (led_count > 0) {
for (uint8_t i = LED_HITS_TO_REMEMBER; i > 1; i--) {
g_last_led_hit[i - 1] = g_last_led_hit[i - 2];


Loading…
Cancel
Save