summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorOkke Formsma <okke@formsma.nl>2021-01-02 13:45:36 +0100
committerPete Johanson <peter@peterjohanson.com>2021-01-02 08:08:51 -0500
commit319ce302700eec9bf2a38b308ac1320aea548453 (patch)
tree69c807c8bd709a3a82a9f11c349bad0af8f4ed72 /app/src
parentfa07ba9d32ab65c4443f1b315beff621c8cf0a9a (diff)
chore(behavior): use ZMK_BEHAVIOR_OPAQUE in to-layer behavior
Diffstat (limited to 'app/src')
-rw-r--r--app/src/behaviors/behavior_to_layer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/src/behaviors/behavior_to_layer.c b/app/src/behaviors/behavior_to_layer.c
index 3ec1bf8..bb64026 100644
--- a/app/src/behaviors/behavior_to_layer.c
+++ b/app/src/behaviors/behavior_to_layer.c
@@ -20,13 +20,14 @@ static int behavior_to_init(const struct device *dev) { return 0; };
static int to_keymap_binding_pressed(struct zmk_behavior_binding *binding,
struct zmk_behavior_binding_event event) {
LOG_DBG("position %d layer %d", event.position, binding->param1);
- return zmk_keymap_layer_to(binding->param1);
+ zmk_keymap_layer_to(binding->param1);
+ return ZMK_BEHAVIOR_OPAQUE;
}
static int to_keymap_binding_released(struct zmk_behavior_binding *binding,
struct zmk_behavior_binding_event event) {
LOG_DBG("position %d layer %d", event.position, binding->param1);
- return 0;
+ return ZMK_BEHAVIOR_OPAQUE;
}
static const struct behavior_driver_api behavior_to_driver_api = {