diff options
Diffstat (limited to 'quantum/rgb_matrix.c')
-rw-r--r-- | quantum/rgb_matrix.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/quantum/rgb_matrix.c b/quantum/rgb_matrix.c index 8c16c7790..5528a0834 100644 --- a/quantum/rgb_matrix.c +++ b/quantum/rgb_matrix.c | |||
@@ -144,9 +144,14 @@ void eeconfig_debug_rgb_matrix(void) { | |||
144 | dprintf("rgb_matrix_config.speed = %d\n", rgb_matrix_config.speed); | 144 | dprintf("rgb_matrix_config.speed = %d\n", rgb_matrix_config.speed); |
145 | } | 145 | } |
146 | 146 | ||
147 | __attribute__ ((weak)) | ||
148 | uint8_t rgb_matrix_map_row_column_to_led_kb(uint8_t row, uint8_t column, uint8_t *led_i) { | ||
149 | return 0; | ||
150 | } | ||
151 | |||
147 | uint8_t rgb_matrix_map_row_column_to_led(uint8_t row, uint8_t column, uint8_t *led_i) { | 152 | uint8_t rgb_matrix_map_row_column_to_led(uint8_t row, uint8_t column, uint8_t *led_i) { |
148 | // TODO: This is kinda expensive, fix this soonish | 153 | // TODO: This is kinda expensive, fix this soonish |
149 | uint8_t led_count = 0; | 154 | uint8_t led_count = rgb_matrix_map_row_column_to_led_kb(row, column, led_i); |
150 | for (uint8_t i = 0; i < DRIVER_LED_TOTAL && led_count < LED_HITS_TO_REMEMBER; i++) { | 155 | for (uint8_t i = 0; i < DRIVER_LED_TOTAL && led_count < LED_HITS_TO_REMEMBER; i++) { |
151 | matrix_co_t matrix_co = g_rgb_leds[i].matrix_co; | 156 | matrix_co_t matrix_co = g_rgb_leds[i].matrix_co; |
152 | if (row == matrix_co.row && column == matrix_co.col) { | 157 | if (row == matrix_co.row && column == matrix_co.col) { |