diff options
| author | Kai <9492636+kaine119@users.noreply.github.com> | 2024-01-09 18:45:44 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-09 21:45:44 +1100 |
| commit | 13f7b6824057e74e9e70781595378d594beeda55 (patch) | |
| tree | 99e4cb6fe372002ee68545de225377ffd73d5dc5 /quantum/process_keycode | |
| parent | 53f1e3b11f856b39a5aaade9d3434f47198e669b (diff) | |
Fix user hook call for dynamic_macro_record_key (#22250)
Diffstat (limited to 'quantum/process_keycode')
| -rw-r--r-- | quantum/process_keycode/process_dynamic_macro.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/quantum/process_keycode/process_dynamic_macro.c b/quantum/process_keycode/process_dynamic_macro.c index 30a51503db..214cd80a87 100644 --- a/quantum/process_keycode/process_dynamic_macro.c +++ b/quantum/process_keycode/process_dynamic_macro.c | |||
| @@ -133,9 +133,8 @@ void dynamic_macro_record_key(keyrecord_t *macro_buffer, keyrecord_t **macro_poi | |||
| 133 | if (*macro_pointer - direction != macro2_end) { | 133 | if (*macro_pointer - direction != macro2_end) { |
| 134 | **macro_pointer = *record; | 134 | **macro_pointer = *record; |
| 135 | *macro_pointer += direction; | 135 | *macro_pointer += direction; |
| 136 | } else { | ||
| 137 | dynamic_macro_record_key_user(direction, record); | ||
| 138 | } | 136 | } |
| 137 | dynamic_macro_record_key_user(direction, record); | ||
| 139 | 138 | ||
| 140 | dprintf("dynamic macro: slot %d length: %d/%d\n", DYNAMIC_MACRO_CURRENT_SLOT(), DYNAMIC_MACRO_CURRENT_LENGTH(macro_buffer, *macro_pointer), DYNAMIC_MACRO_CURRENT_CAPACITY(macro_buffer, macro2_end)); | 139 | dprintf("dynamic macro: slot %d length: %d/%d\n", DYNAMIC_MACRO_CURRENT_SLOT(), DYNAMIC_MACRO_CURRENT_LENGTH(macro_buffer, *macro_pointer), DYNAMIC_MACRO_CURRENT_CAPACITY(macro_buffer, macro2_end)); |
| 141 | } | 140 | } |
