mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-26 02:17:38 +06:00
Fix CAPS_LED logic in Satan (#461)
Needed to invert for proper operation. Previous code had LED on when off and vice versa.
This commit is contained in:
parent
2d80eee6b8
commit
fbf697b9ff
|
@ -22,9 +22,9 @@ void led_init_ports(void) {
|
||||||
void led_set_kb(uint8_t usb_led) {
|
void led_set_kb(uint8_t usb_led) {
|
||||||
if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
|
if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
|
||||||
// Turn capslock on
|
// Turn capslock on
|
||||||
PORTB |= (1<<2);
|
PORTB &= ~(1<<2);
|
||||||
} else {
|
} else {
|
||||||
// Turn capslock off
|
// Turn capslock off
|
||||||
PORTB &= ~(1<<2);
|
PORTB |= (1<<2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user