@@ -66,10 +66,7 @@ static void reset_timer(int32_t timestamp, struct active_tri_state *tri_state) {
6666}
6767
6868void trigger_end_behavior (struct active_tri_state * si ) {
69- struct zmk_behavior_binding_event ev = {
70- .position = si -> position ,
71- .timestamp = k_uptime_get ()
72- };
69+ struct zmk_behavior_binding_event ev = {.position = si -> position , .timestamp = k_uptime_get ()};
7370 zmk_behavior_queue_add (& ev , si -> config -> behaviors [2 ], true, si -> config -> tap_ms );
7471 zmk_behavior_queue_add (& ev , si -> config -> behaviors [2 ], false, 0 );
7572}
@@ -277,7 +274,7 @@ static int tri_state_layer_state_changed_listener(const zmk_event_t *eh) {
277274#define _TRANSFORM_ENTRY (idx , node ) ZMK_KEYMAP_EXTRACT_BINDING(idx, node)
278275
279276#define TRANSFORMED_BINDINGS (node ) \
280- { LISTIFY(DT_INST_PROP_LEN(node, bindings), _TRANSFORM_ENTRY, (, ), DT_DRV_INST(node)) }
277+ {LISTIFY(DT_INST_PROP_LEN(node, bindings), _TRANSFORM_ENTRY, (, ), DT_DRV_INST(node))}
281278
282279#define IF_BIT (n , prop , i ) BIT(DT_PROP_BY_IDX(n, prop, i)) |
283280
0 commit comments