From f80df3e66e80f5bf1737be4b813b002775df7613 Mon Sep 17 00:00:00 2001 From: KemoNine Date: Thu, 4 Feb 2021 04:01:00 +0000 Subject: [PATCH] refactor(combos): simplify layer filter approach --- app/Kconfig | 4 ---- app/src/combo.c | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/app/Kconfig b/app/Kconfig index 6454a848..aa6143ce 100644 --- a/app/Kconfig +++ b/app/Kconfig @@ -301,10 +301,6 @@ config ZMK_COMBO_MAX_KEYS_PER_COMBO int "Maximum number of keys per combo" default 4 -config ZMK_COMBO_MAX_LAYER_FILTERS_PER_COMBO - int "Maximum number of layers that can be specified per combo" - default 4 - #Display/LED Options endmenu diff --git a/app/src/combo.c b/app/src/combo.c index 176cad14..b50a0f61 100644 --- a/app/src/combo.c +++ b/app/src/combo.c @@ -34,8 +34,8 @@ struct combo_cfg { // the virtual key position is a key position outside the range used by the keyboard. // it is necessary so hold-taps can uniquely identify a behavior. int32_t virtual_key_position; - int8_t layers[CONFIG_ZMK_COMBO_MAX_LAYER_FILTERS_PER_COMBO]; int32_t layers_len; + int8_t layers[]; }; struct active_combo {