From 23ea65753915995437f4f243ddf8652f0355d116 Mon Sep 17 00:00:00 2001 From: James Young <18669334+noroadsleft@users.noreply.github.com> Date: Sun, 30 Jul 2023 23:36:17 -0700 Subject: [PATCH] Fix Dynamic Macro Compilation Fixes an issue when compiling firmware in avr-gcc 5.4.0 on Linux systems when the Dynamic Macro feature is enabled. Co-authored-by: Joel Challis --- quantum/process_keycode/process_dynamic_macro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quantum/process_keycode/process_dynamic_macro.c b/quantum/process_keycode/process_dynamic_macro.c index 5e4a6fa30843..30a51503dbb7 100644 --- a/quantum/process_keycode/process_dynamic_macro.c +++ b/quantum/process_keycode/process_dynamic_macro.c @@ -196,7 +196,7 @@ static keyrecord_t *macro_end = macro_buffer; static keyrecord_t *const r_macro_buffer = macro_buffer + DYNAMIC_MACRO_SIZE - 1; /* Like macro_end but for the second macro. */ -static keyrecord_t *r_macro_end = r_macro_buffer; +static keyrecord_t *r_macro_end = macro_buffer + DYNAMIC_MACRO_SIZE - 1; /* A persistent pointer to the current macro position (iterator) * used during the recording. */