From d767854b8d886c023ada29718a18240a275f16c3 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sun, 27 Nov 2016 22:35:32 +0100 Subject: [PATCH] Fix the D and U macro helpers Instead of trying to include an uint16_t in an array of uint8_ts, add the flags and the rawKey separately. Without this, macro playback would not work, because the sequence would be corrupt. Signed-off-by: Gergely Nagy --- libraries/Keyboardio-Macros/src/MacroSteps.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/Keyboardio-Macros/src/MacroSteps.h b/libraries/Keyboardio-Macros/src/MacroSteps.h index c2107c7d..44318bd4 100644 --- a/libraries/Keyboardio-Macros/src/MacroSteps.h +++ b/libraries/Keyboardio-Macros/src/MacroSteps.h @@ -16,7 +16,7 @@ typedef uint8_t macro_t; #define I(n) MACRO_ACTION_STEP_INTERVAL, n #define W(n) MACRO_ACTION_STEP_WAIT, n -#define D(k) MACRO_ACTION_STEP_KEYDOWN, (Key_ ## k).raw -#define U(k) MACRO_ACTION_STEP_KEYUP, (Key_ ## k).raw +#define D(k) MACRO_ACTION_STEP_KEYDOWN, (Key_ ## k).flags, (Key_ ## k).rawKey +#define U(k) MACRO_ACTION_STEP_KEYUP, (Key_ ## k).flags, (Key_ ## k).rawKey #define T(k) D(k), U(k) #define END MACRO_ACTION_END