summaryrefslogtreecommitdiff
path: root/keyboards/idb/idb_60
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2020-10-31 05:15:26 -0700
committerGitHub <noreply@github.com>2020-10-31 23:15:26 +1100
commita3f1defcd40f2d53b01ace2f520ff7901a44c714 (patch)
tree27720a567ca4d38ec5acce1d5e3feb43e44d21d5 /keyboards/idb/idb_60
parentfb579aae49fac9326600d5719ee9cc07463857cc (diff)
[Keyboard] Fix function references IDB 60 (#10810)
Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Thorben <34752364+itspngu@users.noreply.github.com>
Diffstat (limited to 'keyboards/idb/idb_60')
-rw-r--r--keyboards/idb/idb_60/idb_60.c16
-rw-r--r--keyboards/idb/idb_60/idb_60.h23
2 files changed, 22 insertions, 17 deletions
diff --git a/keyboards/idb/idb_60/idb_60.c b/keyboards/idb/idb_60/idb_60.c
index 18ce690431..a86606425e 100644
--- a/keyboards/idb/idb_60/idb_60.c
+++ b/keyboards/idb/idb_60/idb_60.c
@@ -15,3 +15,19 @@ void led_set_kb(uint8_t usb_led) {
led_set_user(usb_led);
}
+
+inline void _idb_60_caps_led_on(void) {
+ writePinLow(C5);
+}
+
+inline void _idb_60_fn_led_on(void) {
+ writePinLow(C4);
+}
+
+inline void _idb_60_caps_led_off(void) {
+ writePinHigh(C5);
+}
+
+inline void _idb_60_fn_led_off(void) {
+ writePinHigh(C4);
+}
diff --git a/keyboards/idb/idb_60/idb_60.h b/keyboards/idb/idb_60/idb_60.h
index 5d61ac464a..608c9ab7f1 100644
--- a/keyboards/idb/idb_60/idb_60.h
+++ b/keyboards/idb/idb_60/idb_60.h
@@ -2,24 +2,13 @@
#include "quantum.h"
-inline void _idb_60_caps_led_on(void) {
- writePinHigh(C5);
-}
-
-inline void _idb_60_fn_led_on(void) {
- writePinHigh(C4);
-}
-
-inline void _idb_60_caps_led_off(void) {
- writePinLow(C5);
-}
-
-inline void _idb_60_fn_led_off(void) {
- writePinLow(C4);
-}
+void _idb_60_caps_led_on(void);
+void _idb_60_fn_led_on(void);
+void _idb_60_caps_led_off(void);
+void _idb_60_fn_led_off(void);
-#define _idb_60_esc_led_on _idb_60_fn_led_on
-#define _idb_60_esc_led_off _idb_60_fn_led_off
+#define _idb_60_esc_led_on() _idb_60_fn_led_on()
+#define _idb_60_esc_led_off() _idb_60_fn_led_off()
#define LAYOUT( \
K00, K10, K01, K11, K02, K12, K03, K13, K04, K14, K05, K15, K06, K16, K07,\