]> 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 33122846c9f9bc765cde2b73cbc8f8e43784d007..8295fb432c7104e594146190282a4c842fe7f384 100644 (file)
@@ -22,7 +22,11 @@ void led_init_ports(void) {
 }
 
 void led_set_kb(uint8_t usb_led) {
-  // Code for caps lock LED as reported by the OS
-  // Set this per keymap, instead of globally
-  led_set_user(usb_led);
+    if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
+        PORTB &= ~(1 << 2);
+    } else {
+        PORTB |= (1 << 2);
+    }
+
+    led_set_user(usb_led);
 }