diff options
| author | tmk <nobody@nowhere> | 2012-10-21 22:37:50 +0900 | 
|---|---|---|
| committer | tmk <nobody@nowhere> | 2012-10-21 22:37:50 +0900 | 
| commit | 0ffd4ae3a9470e4efe41880db27a6ae77ccf1ce2 (patch) | |
| tree | e6e99419ce37e0922ebf7e419e93cfd13d93e25f /common/keyboard.c | |
| parent | 454f7bc71657020d0574e849dad92a14e71230c4 (diff) | |
| parent | f291c2279eb9f656ed2a2e3152bab155470c4ef9 (diff) | |
| download | firmware-0ffd4ae3a9470e4efe41880db27a6ae77ccf1ce2.tar.gz firmware-0ffd4ae3a9470e4efe41880db27a6ae77ccf1ce2.tar.bz2 firmware-0ffd4ae3a9470e4efe41880db27a6ae77ccf1ce2.zip  | |
Merge branch 'sun'
Diffstat (limited to 'common/keyboard.c')
| -rw-r--r-- | common/keyboard.c | 7 | 
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)  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;  }  | 
