compare the keyCode instead of the whole key struct

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

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

Loading…
Cancel
Save