aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/keyboard.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/keyboard.c b/common/keyboard.c
index e973c46d5..b0e0ed793 100644
--- a/common/keyboard.c
+++ b/common/keyboard.c
@@ -555,6 +555,7 @@ void keyboard_init(void)
555void keyboard_task(void) 555void keyboard_task(void)
556{ 556{
557 static matrix_row_t matrix_prev[MATRIX_ROWS]; 557 static matrix_row_t matrix_prev[MATRIX_ROWS];
558 static uint8_t led_status = 0;
558 matrix_row_t matrix_row = 0; 559 matrix_row_t matrix_row = 0;
559 matrix_row_t matrix_change = 0; 560 matrix_row_t matrix_change = 0;
560 561
@@ -617,6 +618,12 @@ void keyboard_task(void)
617 } 618 }
618 } 619 }
619 620
621 // update LED
622 if (led_status != host_keyboard_leds()) {
623 led_status = host_keyboard_leds();
624 keyboard_set_leds(led_status);
625 }
626
620 return; 627 return;
621} 628}
622 629