From d2ef4ab979d144302e75cd651deb1df28a6f9502 Mon Sep 17 00:00:00 2001 From: Raheman Vaiya Date: Tue, 25 Apr 2023 04:48:07 -0400 Subject: [PATCH] macro: Apply macro_sequence_timeout within key sequences (#485) Presently macro_sequence_timeout is strictly an inter-sequence timeout which does not admit a pause between intra-sequence modifiers. This patch applies such a pause to accommodate broken input stacks. --- src/macro.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/macro.c b/src/macro.c index b262fbf..13f743e 100644 --- a/src/macro.c +++ b/src/macro.c @@ -139,6 +139,9 @@ void macro_execute(void (*output)(uint8_t, uint8_t), output(code, 1); } + if (mods && timeout) + usleep(timeout); + output(code, 1); output(code, 0);