summaryrefslogtreecommitdiffstats
path: root/keyboards
diff options
context:
space:
mode:
authorTerryMathews <terry@terrymathews.net>2016-06-30 04:33:09 +0200
committerJack Humbert <jack.humb@gmail.com>2016-06-30 04:33:09 +0200
commitfbf697b9ff2a2347bd9ecedfb86333e5a395c872 (patch)
treec04946ca1f529b45ad40be871cf617c812d90043 /keyboards
parent2d80eee6b8b9d79a931b99e7aa3b528068940a94 (diff)
downloadqmk_firmware-fbf697b9ff2a2347bd9ecedfb86333e5a395c872.tar.gz
qmk_firmware-fbf697b9ff2a2347bd9ecedfb86333e5a395c872.tar.xz
Fix CAPS_LED logic in Satan (#461)
Needed to invert for proper operation. Previous code had LED on when off and vice versa.
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/satan/satan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/satan/satan.c b/keyboards/satan/satan.c
index 1c515f55f..d2c5d5c20 100644
--- a/keyboards/satan/satan.c
+++ b/keyboards/satan/satan.c
@@ -22,9 +22,9 @@ void led_init_ports(void) {
void led_set_kb(uint8_t usb_led) {
if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
// Turn capslock on
- PORTB |= (1<<2);
+ PORTB &= ~(1<<2);
} else {
// Turn capslock off
- PORTB &= ~(1<<2);
+ PORTB |= (1<<2);
}
}