diff options
Diffstat (limited to 'keyboards/tgr')
| -rw-r--r-- | keyboards/tgr/alice/alice.c | 9 | ||||
| -rw-r--r-- | keyboards/tgr/jane/jane.c | 6 |
2 files changed, 5 insertions, 10 deletions
diff --git a/keyboards/tgr/alice/alice.c b/keyboards/tgr/alice/alice.c index 9fb4957ac..a4a5c787c 100644 --- a/keyboards/tgr/alice/alice.c +++ b/keyboards/tgr/alice/alice.c | |||
| @@ -26,16 +26,13 @@ void led_init_ports(void) { | |||
| 26 | setPinOutput(D0); | 26 | setPinOutput(D0); |
| 27 | setPinOutput(D1); | 27 | setPinOutput(D1); |
| 28 | setPinOutput(D6); | 28 | setPinOutput(D6); |
| 29 | writePinHigh(D0); | ||
| 30 | writePinHigh(D1); | ||
| 31 | writePinHigh(D6); | ||
| 32 | } | 29 | } |
| 33 | 30 | ||
| 34 | bool led_update_kb(led_t led_state) { | 31 | bool led_update_kb(led_t led_state) { |
| 35 | if (led_update_user(led_state)) { | 32 | if (led_update_user(led_state)) { |
| 36 | writePin(D0, !led_state.num_lock); | 33 | writePin(D0, led_state.num_lock); |
| 37 | writePin(D1, !led_state.caps_lock); | 34 | writePin(D1, led_state.caps_lock); |
| 38 | writePin(D6, !led_state.scroll_lock); | 35 | writePin(D6, led_state.scroll_lock); |
| 39 | } | 36 | } |
| 40 | return true; | 37 | return true; |
| 41 | } | 38 | } |
diff --git a/keyboards/tgr/jane/jane.c b/keyboards/tgr/jane/jane.c index 24183a0f7..fabdc0e90 100644 --- a/keyboards/tgr/jane/jane.c +++ b/keyboards/tgr/jane/jane.c | |||
| @@ -24,14 +24,12 @@ void keyboard_pre_init_kb(void) { | |||
| 24 | void led_init_ports(void) { | 24 | void led_init_ports(void) { |
| 25 | setPinOutput(D1); | 25 | setPinOutput(D1); |
| 26 | setPinOutput(D6); | 26 | setPinOutput(D6); |
| 27 | writePinHigh(D1); | ||
| 28 | writePinHigh(D6); | ||
| 29 | } | 27 | } |
| 30 | 28 | ||
| 31 | bool led_update_kb(led_t led_state) { | 29 | bool led_update_kb(led_t led_state) { |
| 32 | if (led_update_user(led_state)) { | 30 | if (led_update_user(led_state)) { |
| 33 | writePin(D1, !led_state.caps_lock); | 31 | writePin(D1, led_state.caps_lock); |
| 34 | writePin(D6, !led_state.scroll_lock); | 32 | writePin(D6, led_state.scroll_lock); |
| 35 | } | 33 | } |
| 36 | return true; | 34 | return true; |
| 37 | } | 35 | } |
