aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 b54ff0117..8295fb432 100644
--- a/keyboards/dz60/dz60.c
+++ b/keyboards/dz60/dz60.c
@@ -23,11 +23,9 @@ void led_init_ports(void) {
23 23
24void led_set_kb(uint8_t usb_led) { 24void led_set_kb(uint8_t usb_led) {
25 if (usb_led & (1 << USB_LED_CAPS_LOCK)) { 25 if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
26 DDRB |= (1 << 2);
27 PORTB &= ~(1 << 2); 26 PORTB &= ~(1 << 2);
28 } else { 27 } else {
29 DDRB &= ~(1 << 2); 28 PORTB |= (1 << 2);
30 PORTB &= ~(1 << 2);
31 } 29 }
32 30
33 led_set_user(usb_led); 31 led_set_user(usb_led);