Don't call the keyswitch event handler when idle

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/427/head^2
Gergely Nagy 7 years ago
parent 39763abbb5
commit 12ed823c2d

@ -77,6 +77,7 @@ void ErgoDox::actOnMatrixScan() {
for (byte col = 0; col < COLS; col++) {
uint8_t keyState = (bitRead(previousKeyState_[row], col) << 0) |
(bitRead(keyState_[row], col) << 1);
if (keyState)
handleKeyswitchEvent(Key_NoKey, row, col, keyState);
}
}

Loading…
Cancel
Save