]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Swap KBD75 caps lock LED pin levels (#5132)
authorfauxpark <fauxpark@gmail.com>
Fri, 15 Feb 2019 05:01:40 +0000 (16:01 +1100)
committerDrashna Jaelre <drashna@live.com>
Fri, 15 Feb 2019 05:01:40 +0000 (21:01 -0800)
keyboards/kbdfans/kbd75/rev1/rev1.c
keyboards/kbdfans/kbd75/rev2/rev2.c

index d7d6903817162b61aeeaa98b7cd3ebae3c815095..151e395e3c4b42fc2f85e13b4ba72c2626411009 100644 (file)
@@ -1,14 +1,14 @@
 #include "rev1.h"
 
 void led_set_kb(uint8_t usb_led) {
-       // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
+  // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
   if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
-    writePinHigh(B2);
-  } else {
     writePinLow(B2);
+  } else {
+    writePinHigh(B2);
   }
 
-       led_set_user(usb_led);
+  led_set_user(usb_led);
 }
 
 void matrix_init_kb(void) {
index 2168738fa301f92e30937b0c9f14191559907307..bf91d40092184e6c369a2c1fdbce508dc7951b3b 100644 (file)
@@ -1,14 +1,14 @@
 #include "rev2.h"
 
 void led_set_kb(uint8_t usb_led) {
-       // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
+  // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
   if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
-    writePinHigh(B2);
-  } else {
     writePinLow(B2);
+  } else {
+    writePinHigh(B2);
   }
 
-       led_set_user(usb_led);
+  led_set_user(usb_led);
 }
 
 void matrix_init_kb(void) {