소스 검색

Bugfix for recently integrated cypher keyboard (#5481)

* fixed issue with LED indicators
corrected error in info.json

* fixed issue with led indictors
Max 6 년 전
부모
커밋
f1d921bee6
2개의 변경된 파일9개의 추가작업 그리고 7개의 파일을 삭제
  1. 9 7
      keyboards/westfoxtrot/cypher/cypher.c
  2. 0 0
      keyboards/westfoxtrot/cypher/info.json

+ 9 - 7
keyboards/westfoxtrot/cypher/cypher.c

@@ -35,20 +35,22 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
 
 	return process_record_user(keycode, record);
 }
-void led_set_user(uint8_t usb_led) {
+
+void led_set_kb(uint8_t usb_led) {
     if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
-        writePinLow(F4);
-    } else {
         writePinHigh(F4);
+    } else {
+        writePinLow(F4);
     }
     if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
-        writePinLow(F1);
-    } else {
         writePinHigh(F1);
+    } else {
+        writePinLow(F1);
     }
     if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) {
-        writePinLow(F5);
-    } else {
         writePinHigh(F5);
+    } else {
+        writePinLow(F5);
     }
+    led_set_user(usb_led);
 }

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
keyboards/westfoxtrot/cypher/info.json


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.