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

Loading…
Cancel
Save