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_reset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/behaviors/behavior_reset.c') diff --git a/app/src/behaviors/behavior_reset.c b/app/src/behaviors/behavior_reset.c index cb77a83..e4b720f 100644 --- a/app/src/behaviors/behavior_reset.c +++ b/app/src/behaviors/behavior_reset.c @@ -30,7 +30,7 @@ static int on_keymap_binding_pressed(struct zmk_behavior_binding *binding, // See // https://github.com/adafruit/Adafruit_nRF52_Bootloader/blob/d6b28e66053eea467166f44875e3c7ec741cb471/src/main.c#L107 sys_reboot(cfg->type); - return 0; + return ZMK_BEHAVIOR_OPAQUE; } static const struct behavior_driver_api behavior_reset_driver_api = { -- cgit v1.2.3