summaryrefslogtreecommitdiff
path: root/keyboards/pk60
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/pk60')
-rw-r--r--keyboards/pk60/pk60.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/keyboards/pk60/pk60.c b/keyboards/pk60/pk60.c
index f1d9dd6412..a9da0ff229 100644
--- a/keyboards/pk60/pk60.c
+++ b/keyboards/pk60/pk60.c
@@ -15,7 +15,7 @@ void matrix_scan_kb(void) {
};
void led_init_ports(void) {
-
+ // Set capslock LED pin as pinout
DDRF |= (1 << 4);
PORTF |= (1 << 4);
@@ -24,9 +24,11 @@ void led_init_ports(void) {
void led_set_kb(uint8_t usb_led) {
if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
- PORTF |= (1 << 4);
- } else {
+ // Turn capslock on
PORTF &= ~(1 << 4);
+ } else {
+ // Turn capslock off
+ PORTF |= (1 << 4);
}
led_set_user(usb_led);