effect hook only triggers on known Key_LEDEffect* keys

pull/365/head
Nate Soares 7 years ago
parent 795ef6c1f8
commit 4572cccd67

@ -131,11 +131,12 @@ Key LEDControl::eventHandler(Key mappedKey, byte row, byte col, uint8_t keyState
return mappedKey;
if (keyToggledOn(keyState)) {
if (mappedKey.keyCode == 0)
if (mappedKey == Key_LEDEffectNext) {
next_mode();
else
} else if (mappedKey == Key_LEDEffectPrevious) {
prev_mode();
}
}
return Key_NoKey;
}

Loading…
Cancel
Save