diff options
| author | Pete Johanson <peter@peterjohanson.com> | 2020-12-20 09:49:42 -0500 |
|---|---|---|
| committer | Nick Van Doorn <nick@nv.delivery> | 2021-11-22 08:42:13 -0800 |
| commit | fd609695ae510344c5dbb88f1d253565bd588ea3 (patch) | |
| tree | 65557196f4bd4d22532bbda17cb531b468cb8af2 /app/src/behaviors/behavior_ext_power.c | |
| parent | 67d30762529bee82236446d43b98858072f8afd0 (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.c | 1 |
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, |
