summaryrefslogtreecommitdiff
path: root/quantum/led_matrix
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2025-05-04 17:21:47 -0700
committerGitHub <noreply@github.com>2025-05-05 10:21:47 +1000
commit12caf0be4eab171ffeb041cc153f9addb68f404e (patch)
tree0b89fa2aa4c5ce4a525d1385a10489844e413ee9 /quantum/led_matrix
parentbb9dd05c6ae0a53ced5591c70a898feef037b31c (diff)
Add additional hooks for Community modules (#25050)
Diffstat (limited to 'quantum/led_matrix')
-rw-r--r--quantum/led_matrix/led_matrix.c10
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) {
358 } 358 }
359} 359}
360 360
361__attribute__((weak)) bool led_matrix_indicators_modules(void) {
362 return true;
363}
364
361void led_matrix_indicators(void) { 365void led_matrix_indicators(void) {
366 led_matrix_indicators_modules();
362 led_matrix_indicators_kb(); 367 led_matrix_indicators_kb();
363} 368}
364 369
@@ -370,6 +375,10 @@ __attribute__((weak)) bool led_matrix_indicators_user(void) {
370 return true; 375 return true;
371} 376}
372 377
378__attribute__((weak)) bool led_matrix_indicators_advanced_modules(uint8_t led_min, uint8_t led_max) {
379 return true;
380}
381
373void led_matrix_indicators_advanced(effect_params_t *params) { 382void led_matrix_indicators_advanced(effect_params_t *params) {
374 /* special handling is needed for "params->iter", since it's already been incremented. 383 /* special handling is needed for "params->iter", since it's already been incremented.
375 * Could move the invocations to led_task_render, but then it's missing a few checks 384 * 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) {
377 * led_task_render, right before the iter++ line. 386 * led_task_render, right before the iter++ line.
378 */ 387 */
379 LED_MATRIX_USE_LIMITS_ITER(min, max, params->iter - 1); 388 LED_MATRIX_USE_LIMITS_ITER(min, max, params->iter - 1);
389 led_matrix_indicators_advanced_modules(min, max);
380 led_matrix_indicators_advanced_kb(min, max); 390 led_matrix_indicators_advanced_kb(min, max);
381} 391}
382 392