summaryrefslogtreecommitdiff
path: root/app/src/behaviors/behavior_reset.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_reset.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_reset.c')
-rw-r--r--app/src/behaviors/behavior_reset.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/src/behaviors/behavior_reset.c b/app/src/behaviors/behavior_reset.c
index e19cf32..eb0477d 100644
--- a/app/src/behaviors/behavior_reset.c
+++ b/app/src/behaviors/behavior_reset.c
@@ -36,6 +36,7 @@ static int on_keymap_binding_pressed(struct zmk_behavior_binding *binding,
static const struct behavior_driver_api behavior_reset_driver_api = {
.binding_pressed = on_keymap_binding_pressed,
+ .locality = BEHAVIOR_LOCALITY_EVENT_SOURCE,
};
#define RST_INST(n) \