diff options
author | Ryan <fauxpark@gmail.com> | 2021-03-08 16:55:00 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-08 16:55:00 +1100 |
commit | 9155b59e1a496b64f7aa576e6e4cb84fd0a9607b (patch) | |
tree | f9960c672a5521d24217fffb2321ee1b978b7f8b /quantum/quantum.c | |
parent | b0069c5c05dac2c910d51ef7f3bf4133721a9c49 (diff) | |
download | qmk_firmware-9155b59e1a496b64f7aa576e6e4cb84fd0a9607b.tar.gz qmk_firmware-9155b59e1a496b64f7aa576e6e4cb84fd0a9607b.zip |
LED Matrix: decouple from Backlight (#12054)
Diffstat (limited to 'quantum/quantum.c')
-rw-r--r-- | quantum/quantum.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c index 78601ce6bf..59d95f2f54 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c @@ -234,7 +234,7 @@ bool process_record_quantum(keyrecord_t *record) { #ifdef AUDIO_ENABLE process_audio(keycode, record) && #endif -#ifdef BACKLIGHT_ENABLE +#if defined(BACKLIGHT_ENABLE) || defined(LED_MATRIX_ENABLE) process_backlight(keycode, record) && #endif #ifdef STENO_ENABLE @@ -387,15 +387,14 @@ void matrix_init_quantum() { led_init_ports(); #endif #ifdef BACKLIGHT_ENABLE -# ifdef LED_MATRIX_ENABLE - led_matrix_init(); -# else backlight_init_ports(); -# endif #endif #ifdef AUDIO_ENABLE audio_init(); #endif +#ifdef LED_MATRIX_ENABLE + led_matrix_init(); +#endif #ifdef RGB_MATRIX_ENABLE rgb_matrix_init(); #endif |