diff options
author | Okke Formsma <okke@formsma.nl> | 2020-11-30 22:21:22 +0100 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2020-12-15 13:59:03 -0500 |
commit | b115f16f4ca73e655be2f64bc208b5f6f4b5c820 (patch) | |
tree | 2a6c606894fdd2c7c586cd2679223e4b0afa5646 /app/src/behaviors | |
parent | 1c2796d1c9055fc4fb214aa8004a01133918ed62 (diff) |
refactor(sticky keys): use DT_HAS_COMPAT_STATUS_OKAY(DT_DRV_COMPAT) instead of DT_NODE_EXISTS(DT_DRV_INST(0))
Diffstat (limited to 'app/src/behaviors')
-rw-r--r-- | app/src/behaviors/behavior_sticky_key.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/behaviors/behavior_sticky_key.c b/app/src/behaviors/behavior_sticky_key.c index 776d3e2..19aa79a 100644 --- a/app/src/behaviors/behavior_sticky_key.c +++ b/app/src/behaviors/behavior_sticky_key.c @@ -21,7 +21,7 @@ LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL); -#if DT_NODE_EXISTS(DT_DRV_INST(0)) +#if DT_HAS_COMPAT_STATUS_OKAY(DT_DRV_COMPAT) #define ZMK_BHV_STICKY_KEY_MAX_HELD 10 |