summaryrefslogtreecommitdiffstats
path: root/keyboards/e6v2/le/le.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/e6v2/le/le.c')
-rw-r--r--keyboards/e6v2/le/le.c27
1 files changed, 8 insertions, 19 deletions
diff --git a/keyboards/e6v2/le/le.c b/keyboards/e6v2/le/le.c
index b99a57bca8..f27bdc113b 100644
--- a/keyboards/e6v2/le/le.c
+++ b/keyboards/e6v2/le/le.c
@@ -21,24 +21,13 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
return process_record_user(keycode, record);
}
-void led_set_kb(uint8_t usb_led) {
- // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
- DDRB |= (1<<7);
- if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
- // output low
- DDRB |= (1<<2);
- PORTB &= ~(1<<2);
- } else {
- // Hi-Z
- DDRB &= ~(1<<2);
- PORTB &= ~(1<<2);
- }
- if (usb_led == 0){
- PORTB |= (1<<7);
+void led_set_user(uint8_t usb_led) {
+ if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
+ DDRB |= (1 << 7);
+ PORTB &= ~(1 << 7);
+ } else {
+ DDRB &= ~(1 << 7);
+ PORTB &= ~(1 << 7);
}
- else{
- PORTB &= ~(1<<7);
- }
-
- led_set_user(usb_led);
}
+