summaryrefslogtreecommitdiff
path: root/keyboards/handwired
diff options
context:
space:
mode:
authorholtenc <holtenc@gmail.com>2019-03-18 12:42:26 -0500
committerDrashna Jaelre <drashna@live.com>2019-03-18 10:42:26 -0700
commita6c9e53510d129e6e9fe6936fbfd061f2296a892 (patch)
tree55be11f83ae464d8adfbb737eebcf330f6fbbb71 /keyboards/handwired
parent3e7a2c49a6e81ba51a8079494bb99f61942e3d7f (diff)
downloadqmk_firmware-a6c9e53510d129e6e9fe6936fbfd061f2296a892.tar.gz
qmk_firmware-a6c9e53510d129e6e9fe6936fbfd061f2296a892.zip
[Keyboard] correct indicator light states (#5434)
function of indicator lights was inverted. these changes correct that.
Diffstat (limited to 'keyboards/handwired')
-rw-r--r--keyboards/handwired/prime_exl/keymaps/default/keymap.c16
-rw-r--r--keyboards/handwired/prime_exl/keymaps/via/keymap.c16
2 files changed, 16 insertions, 16 deletions
diff --git a/keyboards/handwired/prime_exl/keymaps/default/keymap.c b/keyboards/handwired/prime_exl/keymaps/default/keymap.c
index 815090bd19..1dac7825e4 100644
--- a/keyboards/handwired/prime_exl/keymaps/default/keymap.c
+++ b/keyboards/handwired/prime_exl/keymaps/default/keymap.c
@@ -113,20 +113,20 @@ void matrix_scan_user(void) {
void led_set_user(uint8_t usb_led) {
if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
- writePinLow(B6);
- } else {
writePinHigh(B6);
+ } else {
+ writePinLow(B6);
}
if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
- writePinLow(B5);
- } else {
writePinHigh(B5);
+ } else {
+ writePinLow(B5);
}
/*
if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) {
- writePinLow(C6);
- } else {
writePinHigh(C6);
+ } else {
+ writePinLow(C6);
}
*/
}
@@ -135,9 +135,9 @@ void led_set_user(uint8_t usb_led) {
uint32_t layer_state_set_user(uint32_t state)
{
if (biton32(state) == 2) {
- writePinLow(C6);
+ writePinHigh(C6);
} else {
- writePinHigh(C6);
+ writePinLow(C6);
}
return state;
}
diff --git a/keyboards/handwired/prime_exl/keymaps/via/keymap.c b/keyboards/handwired/prime_exl/keymaps/via/keymap.c
index 4a2631c369..c01c247c89 100644
--- a/keyboards/handwired/prime_exl/keymaps/via/keymap.c
+++ b/keyboards/handwired/prime_exl/keymaps/via/keymap.c
@@ -71,20 +71,20 @@ void matrix_scan_user(void) {
void led_set_user(uint8_t usb_led) {
if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
- writePinLow(B6);
- } else {
writePinHigh(B6);
+ } else {
+ writePinLow(B6);
}
if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
- writePinLow(B5);
- } else {
writePinHigh(B5);
+ } else {
+ writePinLow(B5);
}
/*
if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) {
- writePinLow(C6);
- } else {
writePinHigh(C6);
+ } else {
+ writePinLow(C6);
}
*/
}
@@ -93,9 +93,9 @@ void led_set_user(uint8_t usb_led) {
uint32_t layer_state_set_user(uint32_t state)
{
if (biton32(state) == 2) {
- writePinLow(C6);
+ writePinHigh(C6);
} else {
- writePinHigh(C6);
+ writePinLow(C6);
}
return state;
}