From cc9546bdd9200e6c39011b40a93d87abc251661e Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Fri, 29 Jan 2016 19:50:24 -0800 Subject: [PATCH] tiny refactor --- key_events.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/key_events.cpp b/key_events.cpp index 67ddda50..de543f57 100644 --- a/key_events.cpp +++ b/key_events.cpp @@ -56,10 +56,8 @@ void handle_key_event(byte row, byte col) { } if (mappedKey.flags & SYNTHETIC_KEY) { handle_synthetic_key_event(switchState, mappedKey); - } else { - if (key_is_pressed(switchState)) { + } else if (key_is_pressed(switchState)) { press_key(mappedKey); - } } }