From 7f261084efd8fb9f3a2241f862b766fc34e87176 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Tue, 21 Mar 2017 19:54:53 +0100 Subject: [PATCH] Update the example so it works as it should Signed-off-by: Gergely Nagy --- .../EEPROM-Keymap-Programmer/EEPROM-Keymap-Programmer.ino | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/EEPROM-Keymap-Programmer/EEPROM-Keymap-Programmer.ino b/examples/EEPROM-Keymap-Programmer/EEPROM-Keymap-Programmer.ino index 02b76896..3839fd04 100644 --- a/examples/EEPROM-Keymap-Programmer/EEPROM-Keymap-Programmer.ino +++ b/examples/EEPROM-Keymap-Programmer/EEPROM-Keymap-Programmer.ino @@ -43,10 +43,7 @@ const Key keymaps[][ROWS][COLS] PROGMEM = { }; const macro_t *macroAction(uint8_t macroIndex, uint8_t keyState) { - if (!key_toggled_on (keyState)) - return MACRO_NONE; - - if (macroIndex == 0) { + if (macroIndex == 0 && key_toggled_off (keyState)) { EEPROMKeymapProgrammer.nextState (); }