From a3f1defcd40f2d53b01ace2f520ff7901a44c714 Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Sat, 31 Oct 2020 05:15:26 -0700 Subject: [Keyboard] Fix function references IDB 60 (#10810) Co-authored-by: Ryan Co-authored-by: Thorben <34752364+itspngu@users.noreply.github.com> --- keyboards/idb/idb_60/idb_60.c | 16 ++++++++++++++++ keyboards/idb/idb_60/idb_60.h | 23 ++++++----------------- 2 files changed, 22 insertions(+), 17 deletions(-) (limited to 'keyboards/idb/idb_60') 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,\ -- cgit v1.2.1