From 19e0bc852f1b42d0a97b916d2c703d54a570090b Mon Sep 17 00:00:00 2001 From: Fred Sundvik Date: Fri, 29 Jun 2018 22:59:23 +0300 Subject: [PATCH] Fix rgb matrix compilation --- quantum/rgb_matrix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quantum/rgb_matrix.c b/quantum/rgb_matrix.c index d29a65b9079..f72acca6700 100644 --- a/quantum/rgb_matrix.c +++ b/quantum/rgb_matrix.c @@ -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];