浏览代码

Fix CAPS_LED logic in Satan (#461)

Needed to invert for proper operation. Previous code had LED on when off
and vice versa.
TerryMathews 9 年之前
父节点
当前提交
fbf697b9ff
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      keyboards/satan/satan.c

+ 2 - 2
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);
     }
 }