summaryrefslogtreecommitdiff
path: root/app/src/behaviors/behavior_ext_power.c
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-12-20 09:49:42 -0500
committerNick Van Doorn <nick@nv.delivery>2021-11-26 09:59:03 -0800
commit4e4faca67015df3a3e1bf1b9937265f465c5093d (patch)
tree65557196f4bd4d22532bbda17cb531b468cb8af2 /app/src/behaviors/behavior_ext_power.c
parent67d30762529bee82236446d43b98858072f8afd0 (diff)
feature(split): behavior locality support.
* GATT characteristic allowing passng data + behavior label to invoke the behavior on the peripheral side. * Behaviors have a locality setting to specify where they run. * Build reset/power/RGB on peripheral.
Diffstat (limited to 'app/src/behaviors/behavior_ext_power.c')
-rw-r--r--app/src/behaviors/behavior_ext_power.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/src/behaviors/behavior_ext_power.c b/app/src/behaviors/behavior_ext_power.c
index fdd890c..2779331 100644
--- a/app/src/behaviors/behavior_ext_power.c
+++ b/app/src/behaviors/behavior_ext_power.c
@@ -71,6 +71,7 @@ static const struct behavior_driver_api behavior_ext_power_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_ext_power_init, device_pm_control_nop, NULL, NULL, APPLICATION,