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 <algernon@madhouse-project.org>
pull/365/head
Gergely Nagy 8 years ago
parent e3481be6ed
commit 4e1a579136

@ -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;
}

Loading…
Cancel
Save