From b673b51b2beee5447382b957e762edb1fc8adca7 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sat, 6 May 2017 22:58:18 +0200 Subject: [PATCH] Fix a pair of think-os Check `mappedKey` against `Key-1` / `Key_0`, because those are key objects. `KEY_1` and `KEY_0` are entirely different things, and they only worked by pure chance. Signed-off-by: Gergely Nagy --- src/Kaleidoscope/EEPROM-Keymap-Programmer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Kaleidoscope/EEPROM-Keymap-Programmer.cpp b/src/Kaleidoscope/EEPROM-Keymap-Programmer.cpp index 5a3b1f0a..c4d60b97 100644 --- a/src/Kaleidoscope/EEPROM-Keymap-Programmer.cpp +++ b/src/Kaleidoscope/EEPROM-Keymap-Programmer.cpp @@ -88,7 +88,7 @@ namespace KaleidoscopePlugins { // WAIT_FOR_CODE state - if (mappedKey < KEY_1 || mappedKey > KEY_0) + if (mappedKey < Key_1 || mappedKey > Key_0) return mappedKey; if (!key_toggled_on (keyState))