From 4e1a5791364624603f4d56cbd8f854994f7fb74f Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Wed, 15 Mar 2017 10:15:41 +0100 Subject: [PATCH] Do not treat 0xffff as NoKey We expect the keymap in EEPROM to be set up by the time we get to use it, instead of having uninitialized EEPROM there. So remove the special handling of 0xffff. Signed-off-by: Gergely Nagy --- src/Kaleidoscope/EEPROM-Keymap.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Kaleidoscope/EEPROM-Keymap.cpp b/src/Kaleidoscope/EEPROM-Keymap.cpp index d5c64c06..ea3536b4 100644 --- a/src/Kaleidoscope/EEPROM-Keymap.cpp +++ b/src/Kaleidoscope/EEPROM-Keymap.cpp @@ -47,9 +47,6 @@ namespace KaleidoscopePlugins { key.flags = EEPROM.read (keymapBase + pos); key.keyCode = EEPROM.read (keymapBase + pos + 1); - if (key.raw == 0xffff) - return Key_NoKey; - return key; }