summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Johanson <peter@peterjohanson.com>2022-02-06 21:04:42 -0500
committerPeter Johanson <peter@peterjohanson.com>2022-02-06 21:04:42 -0500
commite2a90974e3ef859dfef9e5d47a59b61e8bb7a478 (patch)
tree193e4f3908fcf640502f6c5a1bc36dfda8cac58e
parentbe94e049633e2481165ba5b1f9bd07a51b07e62c (diff)
fix(lighting): Proper split backlight support.
Ensure the backlight behavior is run globally.
-rw-r--r--app/src/behaviors/behavior_backlight.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/src/behaviors/behavior_backlight.c b/app/src/behaviors/behavior_backlight.c
index bdad828..8876c1f 100644
--- a/app/src/behaviors/behavior_backlight.c
+++ b/app/src/behaviors/behavior_backlight.c
@@ -88,6 +88,7 @@ static const struct behavior_driver_api behavior_backlight_driver_api = {
on_keymap_binding_convert_central_state_dependent_params,
.binding_pressed = on_keymap_binding_pressed,
.binding_released = on_keymap_binding_released,
+ .locality = BEHAVIOR_LOCALITY_GLOBAL,
};
DEVICE_DT_INST_DEFINE(0, behavior_backlight_init, device_pm_control_nop, NULL, NULL, APPLICATION,