From a33e9e5966030d02c0b26b5189fd759f6162a025 Mon Sep 17 00:00:00 2001 From: jmding8 <44815547+jmding8@users.noreply.github.com> Date: Fri, 29 Oct 2021 04:02:47 +0000 Subject: [PATCH] flexible array --- app/src/behaviors/behavior_hold_tap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/behaviors/behavior_hold_tap.c b/app/src/behaviors/behavior_hold_tap.c index f5803228..b17d45bc 100644 --- a/app/src/behaviors/behavior_hold_tap.c +++ b/app/src/behaviors/behavior_hold_tap.c @@ -51,15 +51,15 @@ enum decision_moment { HT_QUICK_TAP, }; -struct behavior_hold_tap_config { +struct behavior_hold_tagit stp_config { int tapping_term_ms; char *hold_behavior_dev; char *tap_behavior_dev; int quick_tap_ms; enum flavor flavor; bool retro_tap; - int32_t hold_trigger_key_positions[ZMK_KEYMAP_LEN]; int32_t hold_trigger_key_positions_len; + int32_t hold_trigger_key_positions[]; }; // this data is specific for each hold-tap