summaryrefslogtreecommitdiffstats
path: root/keyboards/dz60/dz60.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/dz60/dz60.c')
-rw-r--r--keyboards/dz60/dz60.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/keyboards/dz60/dz60.c b/keyboards/dz60/dz60.c
index 33122846c..b54ff0117 100644
--- a/keyboards/dz60/dz60.c
+++ b/keyboards/dz60/dz60.c
@@ -22,7 +22,13 @@ 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)) {
+ DDRB |= (1 << 2);
+ PORTB &= ~(1 << 2);
+ } else {
+ DDRB &= ~(1 << 2);
+ PORTB &= ~(1 << 2);
+ }
+
+ led_set_user(usb_led);
}