aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMechMerlin <30334081+mechmerlin@users.noreply.github.com>2018-07-16 08:43:17 -0700
committerDrashna Jaelre <drashna@live.com>2018-07-16 08:43:17 -0700
commit8f0ec565f425039e75f5625fc3b34623f85a4558 (patch)
tree603c1d2e21190cabc8b4b8a0739219e8d0fb3c31
parent6a4a4a2875cd264eac2d2c3fb25f3e9cb9e890a6 (diff)
downloadqmk_firmware-8f0ec565f425039e75f5625fc3b34623f85a4558.tar.gz
qmk_firmware-8f0ec565f425039e75f5625fc3b34623f85a4558.zip
E6V2 LE Caps Lock LED Fix (#3419)
-rw-r--r--keyboards/e6v2/le/le.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/keyboards/e6v2/le/le.c b/keyboards/e6v2/le/le.c
index 9083352d4..b99a57bca 100644
--- a/keyboards/e6v2/le/le.c
+++ b/keyboards/e6v2/le/le.c
@@ -23,7 +23,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
23 23
24void led_set_kb(uint8_t usb_led) { 24void led_set_kb(uint8_t usb_led) {
25 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here 25 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
26 DDRB |= (1<<6); 26 DDRB |= (1<<7);
27 if (usb_led & (1<<USB_LED_CAPS_LOCK)) { 27 if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
28 // output low 28 // output low
29 DDRB |= (1<<2); 29 DDRB |= (1<<2);
@@ -33,21 +33,12 @@ void led_set_kb(uint8_t usb_led) {
33 DDRB &= ~(1<<2); 33 DDRB &= ~(1<<2);
34 PORTB &= ~(1<<2); 34 PORTB &= ~(1<<2);
35 } 35 }
36 // DDRB |= (1<<7);
37 // DDRB |= (1<<1);
38 // DDRB |= (1<<3);
39 // DDRE |= (1<<6);
40 if (usb_led == 0){ 36 if (usb_led == 0){
41 PORTB |= (1<<6); 37 PORTB |= (1<<7);
42 // PORTB |= (1<<7);
43 // PORTB |= (1<<1);
44 // PORTB |= (1<<3);
45 // PORTE |= (1<<6);
46 } 38 }
47 else{ 39 else{
48 PORTB &= ~(1<<6); 40 PORTB &= ~(1<<7);
49 // PORTB &= ~(1<<7);
50 } 41 }
51 42
52 led_set_user(usb_led); 43 led_set_user(usb_led);
53} 44}