aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--keyboards/handwired/prime_exl/keymaps/default/keymap.c16
-rw-r--r--keyboards/handwired/prime_exl/keymaps/via/keymap.c16
-rw-r--r--keyboards/primekb/prime_e/keymaps/default/keymap.c16
-rw-r--r--keyboards/primekb/prime_e/keymaps/via/keymap.c16
4 files changed, 32 insertions, 32 deletions
diff --git a/keyboards/handwired/prime_exl/keymaps/default/keymap.c b/keyboards/handwired/prime_exl/keymaps/default/keymap.c
index 815090bd1..1dac7825e 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) {
113 113
114void led_set_user(uint8_t usb_led) { 114void led_set_user(uint8_t usb_led) {
115 if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) { 115 if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
116 writePinLow(B6);
117 } else {
118 writePinHigh(B6); 116 writePinHigh(B6);
117 } else {
118 writePinLow(B6);
119 } 119 }
120 if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { 120 if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
121 writePinLow(B5);
122 } else {
123 writePinHigh(B5); 121 writePinHigh(B5);
122 } else {
123 writePinLow(B5);
124 } 124 }
125 /* 125 /*
126 if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) { 126 if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) {
127 writePinLow(C6);
128 } else {
129 writePinHigh(C6); 127 writePinHigh(C6);
128 } else {
129 writePinLow(C6);
130 } 130 }
131 */ 131 */
132} 132}
@@ -135,9 +135,9 @@ void led_set_user(uint8_t usb_led) {
135uint32_t layer_state_set_user(uint32_t state) 135uint32_t layer_state_set_user(uint32_t state)
136{ 136{
137 if (biton32(state) == 2) { 137 if (biton32(state) == 2) {
138 writePinLow(C6); 138 writePinHigh(C6);
139 } else { 139 } else {
140 writePinHigh(C6); 140 writePinLow(C6);
141 } 141 }
142 return state; 142 return state;
143} 143}
diff --git a/keyboards/handwired/prime_exl/keymaps/via/keymap.c b/keyboards/handwired/prime_exl/keymaps/via/keymap.c
index 4a2631c36..c01c247c8 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) {
71 71
72void led_set_user(uint8_t usb_led) { 72void led_set_user(uint8_t usb_led) {
73 if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) { 73 if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
74 writePinLow(B6);
75 } else {
76 writePinHigh(B6); 74 writePinHigh(B6);
75 } else {
76 writePinLow(B6);
77 } 77 }
78 if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { 78 if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
79 writePinLow(B5);
80 } else {
81 writePinHigh(B5); 79 writePinHigh(B5);
80 } else {
81 writePinLow(B5);
82 } 82 }
83 /* 83 /*
84 if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) { 84 if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) {
85 writePinLow(C6);
86 } else {
87 writePinHigh(C6); 85 writePinHigh(C6);
86 } else {
87 writePinLow(C6);
88 } 88 }
89 */ 89 */
90} 90}
@@ -93,9 +93,9 @@ void led_set_user(uint8_t usb_led) {
93uint32_t layer_state_set_user(uint32_t state) 93uint32_t layer_state_set_user(uint32_t state)
94{ 94{
95 if (biton32(state) == 2) { 95 if (biton32(state) == 2) {
96 writePinLow(C6); 96 writePinHigh(C6);
97 } else { 97 } else {
98 writePinHigh(C6); 98 writePinLow(C6);
99 } 99 }
100 return state; 100 return state;
101} 101}
diff --git a/keyboards/primekb/prime_e/keymaps/default/keymap.c b/keyboards/primekb/prime_e/keymaps/default/keymap.c
index 47692c541..0aab745cd 100644
--- a/keyboards/primekb/prime_e/keymaps/default/keymap.c
+++ b/keyboards/primekb/prime_e/keymaps/default/keymap.c
@@ -44,20 +44,20 @@ void matrix_scan_user(void) {
44 44
45void led_set_user(uint8_t usb_led) { 45void led_set_user(uint8_t usb_led) {
46 if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) { 46 if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
47 writePinLow(B2);
48 } else {
49 writePinHigh(B2); 47 writePinHigh(B2);
48 } else {
49 writePinLow(B2);
50 } 50 }
51 if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { 51 if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
52 writePinLow(B1);
53 } else {
54 writePinHigh(B1); 52 writePinHigh(B1);
53 } else {
54 writePinLow(B1);
55 } 55 }
56/* 56/*
57 if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) { 57 if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) {
58 writePinLow(B3);
59 } else {
60 writePinHigh(B3); 58 writePinHigh(B3);
59 } else {
60 writePinLow(B3);
61 }*/ 61 }*/
62 62
63} 63}
@@ -66,9 +66,9 @@ void led_set_user(uint8_t usb_led) {
66uint32_t layer_state_set_user(uint32_t state) 66uint32_t layer_state_set_user(uint32_t state)
67{ 67{
68 if (biton32(state) == 1) { 68 if (biton32(state) == 1) {
69 writePinLow(B3); 69 writePinHigh(B3);
70 } else { 70 } else {
71 writePinHigh(B3); 71 writePinLow(B3);
72 } 72 }
73 return state; 73 return state;
74} 74}
diff --git a/keyboards/primekb/prime_e/keymaps/via/keymap.c b/keyboards/primekb/prime_e/keymaps/via/keymap.c
index 9cc3e2f3d..8b5b13866 100644
--- a/keyboards/primekb/prime_e/keymaps/via/keymap.c
+++ b/keyboards/primekb/prime_e/keymaps/via/keymap.c
@@ -43,20 +43,20 @@ void matrix_scan_user(void) {
43 43
44void led_set_user(uint8_t usb_led) { 44void led_set_user(uint8_t usb_led) {
45 if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) { 45 if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
46 writePinLow(B2);
47 } else {
48 writePinHigh(B2); 46 writePinHigh(B2);
47 } else {
48 writePinLow(B2);
49 } 49 }
50 if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { 50 if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
51 writePinLow(B1);
52 } else {
53 writePinHigh(B1); 51 writePinHigh(B1);
52 } else {
53 writePinLow(B1);
54 } 54 }
55/* 55/*
56 if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) { 56 if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) {
57 writePinLow(B3);
58 } else {
59 writePinHigh(B3); 57 writePinHigh(B3);
58 } else {
59 writePinLow(B3);
60 }*/ 60 }*/
61 61
62} 62}
@@ -65,9 +65,9 @@ void led_set_user(uint8_t usb_led) {
65uint32_t layer_state_set_user(uint32_t state) 65uint32_t layer_state_set_user(uint32_t state)
66{ 66{
67 if (biton32(state) == 1) { 67 if (biton32(state) == 1) {
68 writePinLow(B3); 68 writePinHigh(B3);
69 } else { 69 } else {
70 writePinHigh(B3); 70 writePinLow(B3);
71 } 71 }
72 return state; 72 return state;
73} 73}