diff options
author | Ryan <[email protected]> | 2024-04-11 14:06:36 +1000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-04-11 14:06:36 +1000 |
commit | 25f608c1b437060e8c9b451ed81c7e37a2531284 (patch) | |
tree | d49488270685d04b7ff8a017946497d21b9d16ea /quantum/quantum.c | |
parent | 4acdddbf48707e5221cb754b4aa5caf32ce28276 (diff) | |
download | qmk_firmware-25f608c1b437060e8c9b451ed81c7e37a2531284.tar.gz qmk_firmware-25f608c1b437060e8c9b451ed81c7e37a2531284.zip |
Separate keycode handling for LED Matrix and Backlight (#23426)
Diffstat (limited to 'quantum/quantum.c')
-rw-r--r-- | quantum/quantum.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c index 6639dc2291..011f9d73e4 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c @@ -16,7 +16,7 @@ #include "quantum.h" -#if defined(BACKLIGHT_ENABLE) || defined(LED_MATRIX_ENABLE) +#ifdef BACKLIGHT_ENABLE # include "process_backlight.h" #endif @@ -40,6 +40,10 @@ # include "process_leader.h" #endif +#ifdef LED_MATRIX_ENABLE +# include "process_led_matrix.h" +#endif + #ifdef MAGIC_ENABLE # include "process_magic.h" #endif @@ -333,9 +337,12 @@ bool process_record_quantum(keyrecord_t *record) { #ifdef AUDIO_ENABLE process_audio(keycode, record) && #endif -#if defined(BACKLIGHT_ENABLE) || defined(LED_MATRIX_ENABLE) +#if defined(BACKLIGHT_ENABLE) process_backlight(keycode, record) && #endif +#if defined(LED_MATRIX_ENABLE) + process_led_matrix(keycode, record) && +#endif #ifdef STENO_ENABLE process_steno(keycode, record) && #endif |