From fa07ba9d32ab65c4443f1b315beff621c8cf0a9a Mon Sep 17 00:00:00 2001 From: Okke Formsma Date: Fri, 18 Dec 2020 14:24:28 +0100 Subject: refactor(behaviors): use ZMK_BEHAVIOR_OPAQUE and ZMK_BEHAVIOR_TRANSPARENT Use these instead of the magic return values 0 and 1 for behavior_driver_api return values. --- app/src/behaviors/behavior_ext_power.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/behaviors/behavior_ext_power.c') diff --git a/app/src/behaviors/behavior_ext_power.c b/app/src/behaviors/behavior_ext_power.c index dbc6fd9..18520f7 100644 --- a/app/src/behaviors/behavior_ext_power.c +++ b/app/src/behaviors/behavior_ext_power.c @@ -43,7 +43,7 @@ static int on_keymap_binding_pressed(struct zmk_behavior_binding *binding, static int on_keymap_binding_released(struct zmk_behavior_binding *binding, struct zmk_behavior_binding_event event) { - return 0; + return ZMK_BEHAVIOR_OPAQUE; } static int behavior_ext_power_init(const struct device *dev) { return 0; }; -- cgit v1.2.3