From 215d7de8ce0fd51801b166575663669b1bbcf94e Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Mon, 27 Mar 2017 22:39:57 +0200 Subject: [PATCH] Use UNKNOWN_KEYSWITCH_LOCATION instead of magic numbers Signed-off-by: Gergely Nagy --- src/Kaleidoscope-Macros.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Kaleidoscope-Macros.cpp b/src/Kaleidoscope-Macros.cpp index 018fa540..2e658a0c 100644 --- a/src/Kaleidoscope-Macros.cpp +++ b/src/Kaleidoscope-Macros.cpp @@ -13,11 +13,11 @@ static void readKeyCodeAndPlay (const macro_t *macro_p, uint8_t flags, uint8_t k key.keyCode = pgm_read_byte(macro_p++); if (keyStates & IS_PRESSED) { - handle_key_event(key, 255, 255, IS_PRESSED | INJECTED); + handle_key_event(key, UNKNOWN_KEYSWITCH_LOCATION, IS_PRESSED | INJECTED); Keyboard.sendReport(); } if (keyStates & WAS_PRESSED) { - handle_key_event(key, 255, 255, WAS_PRESSED | INJECTED); + handle_key_event(key, UNKNOWN_KEYSWITCH_LOCATION, WAS_PRESSED | INJECTED); Keyboard.sendReport(); } }