tiny refactor

pull/18/head
Jesse Vincent 9 years ago
parent d8f1a02cde
commit cc9546bdd9

@ -56,11 +56,9 @@ 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);
}
}
}
void press_key(Key mappedKey) {

Loading…
Cancel
Save