Report the current keyboard state to Kaleidoscope on every loop

not just when the timer triggers

Signed-off-by: Jesse Vincent <jesse@keyboard.io>
pull/473/head
Jesse Vincent 6 years ago
parent 3e9552cf44
commit 7f6c26d658

@ -110,12 +110,12 @@ void __attribute__((optimize(3))) ATMegaKeyboard::actOnMatrixScan() {
}
void ATMegaKeyboard::scanMatrix() {
if (!do_scan_)
return;
if (do_scan_) {
do_scan_ = false;
// We only want to update our matrix if the timer has expired.
KeyboardHardware.readMatrix();
}
// We ALWAYS want to tell Kaleidoscope about the state of the matrix
KeyboardHardware.actOnMatrixScan();
}

Loading…
Cancel
Save