Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Delay time to sending each Keys for VIA Macros function feature #16810

Merged
merged 6 commits into from
Jul 11, 2022
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions quantum/dynamic_keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@
# define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE (DYNAMIC_KEYMAP_EEPROM_MAX_ADDR - DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR + 1)
#endif

// Sets the delay between sending macro keycodes . Use TAP_CODE_DELAY if undefined this .
FREEWING-JP marked this conversation as resolved.
Show resolved Hide resolved
#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;
}
Expand Down Expand Up @@ -249,6 +254,10 @@ void dynamic_keymap_macro_send(uint8_t id) {
break;
}
}
#if DYNAMIC_KEYMAP_MACRO_DELAY > 0
send_string_with_delay(data, DYNAMIC_KEYMAP_MACRO_DELAY);
#else
send_string(data);
#endif
FREEWING-JP marked this conversation as resolved.
Show resolved Hide resolved
}
}