X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=common%2Fkeyboard.c;h=b0e0ed7935278f5b97f617822bfb2b12944951b6;hb=edce1d19a6af040df994243e7b6b1851e3eccebc;hp=e973c46d5b0c7fe600895aa3d3545ff87fcd1c00;hpb=454f7bc71657020d0574e849dad92a14e71230c4;p=tmk_firmware.git diff --git a/common/keyboard.c b/common/keyboard.c index e973c46..b0e0ed7 100644 --- a/common/keyboard.c +++ b/common/keyboard.c @@ -555,6 +555,7 @@ void keyboard_init(void) void keyboard_task(void) { static matrix_row_t matrix_prev[MATRIX_ROWS]; + static uint8_t led_status = 0; matrix_row_t matrix_row = 0; matrix_row_t matrix_change = 0; @@ -617,6 +618,12 @@ void keyboard_task(void) } } + // update LED + if (led_status != host_keyboard_leds()) { + led_status = host_keyboard_leds(); + keyboard_set_leds(led_status); + } + return; }