diff options
author | Rockman18 <rockman18.spam@gmail.com> | 2019-01-31 00:42:30 +0100 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-01-30 15:42:30 -0800 |
commit | c2080d3b0a56dc8c1678077ccaf84cd447fe2773 (patch) | |
tree | 233fcecdc72c07d4839b452aabaaf24b0a19abc0 /keyboards/s65_x/s65_x.c | |
parent | 1d49f76f15c9940dd1dce580c19bfda62548c980 (diff) |
[Keyboard][S65-X] BACKLIGHT_CAPS_LOCK (#4770)
Replace buggy Caps Lock indicator implementation with new
BACKLIGHT_CAPS_LOCK_INDICATOR feature.
Diffstat (limited to 'keyboards/s65_x/s65_x.c')
-rw-r--r-- | keyboards/s65_x/s65_x.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/keyboards/s65_x/s65_x.c b/keyboards/s65_x/s65_x.c index 29073750c1..844f5cf28b 100644 --- a/keyboards/s65_x/s65_x.c +++ b/keyboards/s65_x/s65_x.c @@ -1,5 +1,4 @@ #include "s65_x.h" -#include "led.h" void matrix_init_kb(void) { // put your keyboard start-up code here @@ -14,11 +13,6 @@ void matrix_scan_kb(void) { }; void led_set_kb(uint8_t usb_led) { - if (usb_led & (1<<USB_LED_CAPS_LOCK)) { - // Turn capslock on - PORTB &= ~(1<<7); - } else { - // Turn capslock off - PORTB |= (1<<7); - } + // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here + led_set_user(usb_led); } |