summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorFREEWING.JP <freewing.jp@gmail.com>2022-07-02 20:48:26 +0900
committerGitHub <noreply@github.com>2022-07-02 21:48:26 +1000
commit9dc7b9d40cfa199875cdc9e2e05b15d3f463b415 (patch)
treeb626564e2aeb9021b07ecd2e1dbf92e2d0465ef0 /quantum
parent0856b36139e3948604aeeb99eececdcccfd2298a (diff)
Added Wait time to sending each Keys for Dynamic Macros function (#16800)
Co-authored-by: Joel Challis <git@zvecr.com>
Diffstat (limited to 'quantum')
-rw-r--r--quantum/process_keycode/process_dynamic_macro.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/quantum/process_keycode/process_dynamic_macro.c b/quantum/process_keycode/process_dynamic_macro.c
index a1ada2d5a2..a7555fdd40 100644
--- a/quantum/process_keycode/process_dynamic_macro.c
+++ b/quantum/process_keycode/process_dynamic_macro.c
@@ -86,6 +86,9 @@ void dynamic_macro_play(keyrecord_t *macro_buffer, keyrecord_t *macro_end, int8_
while (macro_buffer != macro_end) {
process_record(macro_buffer);
macro_buffer += direction;
+#ifdef DYNAMIC_MACRO_DELAY
+ wait_ms(DYNAMIC_MACRO_DELAY);
+#endif
}
clear_keyboard();