summaryrefslogtreecommitdiffstats
path: root/keyboards/westfoxtrot/cypher/cypher.c
diff options
context:
space:
mode:
authorMax <17062872+westfoxtrot@users.noreply.github.com>2019-03-24 22:00:48 +0100
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>2019-03-24 22:00:48 +0100
commitf1d921bee6bc371e1613b71240635a9847e685b3 (patch)
treea66f44d2216fe8db9b247fe50a4f0211595273d7 /keyboards/westfoxtrot/cypher/cypher.c
parentbfc16765f423dccb9a4b81a3e62b7bb3df48252f (diff)
downloadqmk_firmware-f1d921bee6bc371e1613b71240635a9847e685b3.tar.gz
qmk_firmware-f1d921bee6bc371e1613b71240635a9847e685b3.tar.xz
Bugfix for recently integrated cypher keyboard (#5481)
* fixed issue with LED indicators corrected error in info.json * fixed issue with led indictors
Diffstat (limited to 'keyboards/westfoxtrot/cypher/cypher.c')
-rw-r--r--keyboards/westfoxtrot/cypher/cypher.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/keyboards/westfoxtrot/cypher/cypher.c b/keyboards/westfoxtrot/cypher/cypher.c
index e6cd84328..d2407525e 100644
--- a/keyboards/westfoxtrot/cypher/cypher.c
+++ b/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);
}