summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorFREEWING.JP <freewing.jp@gmail.com>2022-07-12 04:59:16 +0900
committerGitHub <noreply@github.com>2022-07-11 12:59:16 -0700
commit61df87ae2ccaafc8387c4349187f0ab7e9e7bfbc (patch)
treef210fc7b32669144a372f2855cb98bfbef681b7a /quantum
parent52e9ed75e8e5a51b46ffd9e886966ec72325b132 (diff)
downloadqmk_firmware-61df87ae2ccaafc8387c4349187f0ab7e9e7bfbc.tar.gz
qmk_firmware-61df87ae2ccaafc8387c4349187f0ab7e9e7bfbc.zip
Added Delay time dynamic keymap's macro feature (#16810)
Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'quantum')
-rw-r--r--quantum/dynamic_keymap.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/quantum/dynamic_keymap.c b/quantum/dynamic_keymap.c
index fc1c55784d..cbe9f13940 100644
--- a/quantum/dynamic_keymap.c
+++ b/quantum/dynamic_keymap.c
@@ -93,6 +93,10 @@ _Static_assert((DYNAMIC_KEYMAP_EEPROM_MAX_ADDR) - (DYNAMIC_KEYMAP_MACRO_EEPROM_A
# define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE (DYNAMIC_KEYMAP_EEPROM_MAX_ADDR - DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR + 1)
#endif
+#ifndef DYNAMIC_KEYMAP_MACRO_DELAY
+# define DYNAMIC_KEYMAP_MACRO_DELAY TAP_CODE_DELAY
+#endif
+
uint8_t dynamic_keymap_get_layer_count(void) {
return DYNAMIC_KEYMAP_LAYER_COUNT;
}
@@ -300,6 +304,6 @@ void dynamic_keymap_macro_send(uint8_t id) {
break;
}
}
- send_string(data);
+ send_string_with_delay(data, DYNAMIC_KEYMAP_MACRO_DELAY);
}
}