]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - keyboards/dz60/dz60.c
Usbasploader bootloader option addition (#6304)
[qmk_firmware.git] / keyboards / dz60 / dz60.c
index b54ff0117034e62353e6d4758995b8a2926cd397..8295fb432c7104e594146190282a4c842fe7f384 100644 (file)
@@ -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);