Fix rgb matrix compilation

This commit is contained in:
Fred Sundvik 2018-06-29 22:59:23 +03:00
parent 32028cfc43
commit 19e0bc852f

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) { bool process_rgb_matrix(uint16_t keycode, keyrecord_t *record) {
if ( record->event.pressed ) { if ( record->event.pressed ) {
uint8_t led[8], led_count; 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) { if (led_count > 0) {
for (uint8_t i = LED_HITS_TO_REMEMBER; i > 1; i--) { for (uint8_t i = LED_HITS_TO_REMEMBER; i > 1; i--) {
g_last_led_hit[i - 1] = g_last_led_hit[i - 2]; g_last_led_hit[i - 1] = g_last_led_hit[i - 2];