diff options
author | Okke Formsma <okke@formsma.nl> | 2020-12-18 14:24:28 +0100 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2021-01-01 23:07:54 -0500 |
commit | fa07ba9d32ab65c4443f1b315beff621c8cf0a9a (patch) | |
tree | 4dcc4bea01d30b0502367712fd08d78602f71182 /app/src/behaviors/behavior_reset.c | |
parent | caa285852adc2d18ebd925171d11d0fd20d88dc8 (diff) |
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.
Diffstat (limited to 'app/src/behaviors/behavior_reset.c')
-rw-r--r-- | app/src/behaviors/behavior_reset.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 = { |