summaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
authorMenchen <huangmenchen@gmail.com>2018-12-25 20:01:54 +0100
committerskullydazed <skullydazed@users.noreply.github.com>2018-12-28 23:29:58 -0800
commite2f60eba2f5d44282a6aff35fde9076b0532c23c (patch)
tree0ca3475d00222a0bc6c2e537147fc1d8a1926a4a /keyboards
parent8443481aea47182683d6b26aa00548e9ebfab82e (diff)
downloadqmk_firmware-e2f60eba2f5d44282a6aff35fde9076b0532c23c.tar.gz
qmk_firmware-e2f60eba2f5d44282a6aff35fde9076b0532c23c.zip
Fix capkey led for dz60.
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/dz60/dz60.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/keyboards/dz60/dz60.c b/keyboards/dz60/dz60.c
index b54ff01170..8295fb432c 100644
--- 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);