aboutsummaryrefslogtreecommitdiff
path: root/keyboards/hardlineworks
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2021-08-03 18:34:32 +0100
committerGitHub <noreply@github.com>2021-08-03 18:34:32 +0100
commit3f419dc872d3ab61d129c644e114f62fd738e9d6 (patch)
tree51beaff9f09d19130ca4f504bef512f776512f03 /keyboards/hardlineworks
parent2bc7511b9e045c56e611c8c4f091ce00bc799772 (diff)
downloadqmk_firmware-3f419dc872d3ab61d129c644e114f62fd738e9d6.tar.gz
qmk_firmware-3f419dc872d3ab61d129c644e114f62fd738e9d6.zip
Unconditionally call led_init_ports (#12116)
* Unconditionally call led_init_ports * Another call to led_init_ports
Diffstat (limited to 'keyboards/hardlineworks')
-rw-r--r--keyboards/hardlineworks/otd_plus/config.h4
-rw-r--r--keyboards/hardlineworks/otd_plus/otd_plus.c11
2 files changed, 2 insertions, 13 deletions
diff --git a/keyboards/hardlineworks/otd_plus/config.h b/keyboards/hardlineworks/otd_plus/config.h
index 5474dbfee..15e6df758 100644
--- a/keyboards/hardlineworks/otd_plus/config.h
+++ b/keyboards/hardlineworks/otd_plus/config.h
@@ -20,8 +20,8 @@
20/* COL2ROW or ROW2COL */ 20/* COL2ROW or ROW2COL */
21#define DIODE_DIRECTION COL2ROW 21#define DIODE_DIRECTION COL2ROW
22 22
23#define CAPS_LOCK_LED_PIN F4 23#define LED_CAPS_LOCK_PIN F4
24#define SCROLL_LOCK_LED_PIN D5 24#define LED_SCROLL_LOCK_PIN D5
25 25
26/* Set 0 if debouncing isn't needed */ 26/* Set 0 if debouncing isn't needed */
27#define DEBOUNCE 5 27#define DEBOUNCE 5
diff --git a/keyboards/hardlineworks/otd_plus/otd_plus.c b/keyboards/hardlineworks/otd_plus/otd_plus.c
index f7f96800d..29d395d28 100644
--- a/keyboards/hardlineworks/otd_plus/otd_plus.c
+++ b/keyboards/hardlineworks/otd_plus/otd_plus.c
@@ -1,12 +1 @@
1#include "otd_plus.h" #include "otd_plus.h"
2
3void keyboard_pre_init_kb(void) {
4 led_init_ports();
5 keyboard_pre_init_user();
6}
7void led_init_ports(void) {
8 setPinOutput(CAPS_LOCK_LED_PIN);
9 setPinOutput(SCROLL_LOCK_LED_PIN);
10}
11
12