diff options
author | Drashna Jaelre <[email protected]> | 2025-05-04 17:21:47 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2025-05-05 10:21:47 +1000 |
commit | 12caf0be4eab171ffeb041cc153f9addb68f404e (patch) | |
tree | 0b89fa2aa4c5ce4a525d1385a10489844e413ee9 /quantum/led_matrix/led_matrix.c | |
parent | bb9dd05c6ae0a53ced5591c70a898feef037b31c (diff) | |
download | qmk_firmware-12caf0be4eab171ffeb041cc153f9addb68f404e.tar.gz qmk_firmware-12caf0be4eab171ffeb041cc153f9addb68f404e.zip |
Add additional hooks for Community modules (#25050)
Diffstat (limited to 'quantum/led_matrix/led_matrix.c')
-rw-r--r-- | quantum/led_matrix/led_matrix.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/quantum/led_matrix/led_matrix.c b/quantum/led_matrix/led_matrix.c index f9d76e2776..00bc199ecf 100644 --- a/quantum/led_matrix/led_matrix.c +++ b/quantum/led_matrix/led_matrix.c @@ -358,7 +358,12 @@ void led_matrix_task(void) { } } +__attribute__((weak)) bool led_matrix_indicators_modules(void) { + return true; +} + void led_matrix_indicators(void) { + led_matrix_indicators_modules(); led_matrix_indicators_kb(); } @@ -370,6 +375,10 @@ __attribute__((weak)) bool led_matrix_indicators_user(void) { return true; } +__attribute__((weak)) bool led_matrix_indicators_advanced_modules(uint8_t led_min, uint8_t led_max) { + return true; +} + void led_matrix_indicators_advanced(effect_params_t *params) { /* special handling is needed for "params->iter", since it's already been incremented. * Could move the invocations to led_task_render, but then it's missing a few checks @@ -377,6 +386,7 @@ void led_matrix_indicators_advanced(effect_params_t *params) { * led_task_render, right before the iter++ line. */ LED_MATRIX_USE_LIMITS_ITER(min, max, params->iter - 1); + led_matrix_indicators_advanced_modules(min, max); led_matrix_indicators_advanced_kb(min, max); } |