refactor(behaviors): Add max-held tap-dance config (#2838)

refactor(behaviors): Add max-held tap-dance config

Add new `CONFIG_ZMK_BEHAVIOR_TAP_DANCE_MAX_HELD` config for reducing RAM
usage on more constrained devices.

refactor(behaviors): Move defaults to Kconfig.defaults
This commit is contained in:
Pete Johanson
2025-02-25 12:12:27 -07:00
committed by GitHub
parent 18d0d2f476
commit 209085da73
5 changed files with 49 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL);
#if DT_HAS_COMPAT_STATUS_OKAY(DT_DRV_COMPAT)
#define ZMK_BHV_TAP_DANCE_MAX_HELD 10
#define ZMK_BHV_TAP_DANCE_MAX_HELD CONFIG_ZMK_BEHAVIOR_TAP_DANCE_MAX_HELD
#define ZMK_BHV_TAP_DANCE_POSITION_FREE UINT32_MAX