aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/src/keymap.c
diff options
context:
space:
mode:
authorPeter Johanson <[email protected]>2023-06-28 19:26:33 +0000
committerPete Johanson <[email protected]>2023-08-27 19:52:03 -0700
commita92a4967aa85f4ab19d36bcb81afc0420f2775d2 (patch)
treedf59c38c65c7e8af56ca55a40545c1483b9f312a /app/src/keymap.c
parentdcb1f8f13528effc3e2ee3dadf9b385bf2394037 (diff)
downloadzmk-a92a4967aa85f4ab19d36bcb81afc0420f2775d2.tar.gz
zmk-a92a4967aa85f4ab19d36bcb81afc0420f2775d2.zip
fix(sensors): Only accept data once per behavior.
* Don't accept data for the same behavior on multiple layers more than once, to avoid duplicate/extraneous triggers.
Diffstat (limited to 'app/src/keymap.c')
-rw-r--r--app/src/keymap.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/src/keymap.c b/app/src/keymap.c
index 020faf3f2b..bda694276c 100644
--- a/app/src/keymap.c
+++ b/app/src/keymap.c
@@ -31,10 +31,6 @@ static uint8_t _zmk_keymap_layer_default = 0;
#define DT_DRV_COMPAT zmk_keymap
-#define LAYER_CHILD_LEN(node) 1 +
-#define ZMK_KEYMAP_NODE DT_DRV_INST(0)
-#define ZMK_KEYMAP_LAYERS_LEN (DT_INST_FOREACH_CHILD(0, LAYER_CHILD_LEN) 0)
-
#define BINDING_WITH_COMMA(idx, drv_inst) ZMK_KEYMAP_EXTRACT_BINDING(idx, drv_inst)
#define TRANSFORMED_LAYER(node) \