projects
/
qmk_firmware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8443481
)
Fix capkey led for dz60.
author
Menchen
<huangmenchen@gmail.com>
Tue, 25 Dec 2018 19:01:54 +0000
(20:01 +0100)
committer
skullydazed
<skullydazed@users.noreply.github.com>
Sat, 29 Dec 2018 07:29:58 +0000
(23:29 -0800)
keyboards/dz60/dz60.c
patch
|
blob
|
history
diff --git
a/keyboards/dz60/dz60.c
b/keyboards/dz60/dz60.c
index b54ff0117034e62353e6d4758995b8a2926cd397..8295fb432c7104e594146190282a4c842fe7f384 100644
(file)
--- a/
keyboards/dz60/dz60.c
+++ b/
keyboards/dz60/dz60.c
@@
-23,11
+23,9
@@
void led_init_ports(void) {
void led_set_kb(uint8_t usb_led) {
if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
- DDRB |= (1 << 2);
PORTB &= ~(1 << 2);
} else {
- DDRB &= ~(1 << 2);
- PORTB &= ~(1 << 2);
+ PORTB |= (1 << 2);
}
led_set_user(usb_led);