logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git
commit: 13f7b6824057e74e9e70781595378d594beeda55
parent 53f1e3b11f856b39a5aaade9d3434f47198e669b
Author: Kai <9492636+kaine119@users.noreply.github.com>
Date:   Tue,  9 Jan 2024 18:45:44 +0800

Fix user hook call for dynamic_macro_record_key (#22250)


Diffstat:

Mquantum/process_keycode/process_dynamic_macro.c3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 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 if (*macro_pointer - direction != macro2_end) { **macro_pointer = *record; *macro_pointer += direction; - } else { - dynamic_macro_record_key_user(direction, record); } + dynamic_macro_record_key_user(direction, record); 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)); }