hardware/ErgoDox: Report the current keyboard state every cycle

Instead of only reporting the state when the timer triggers, report it every
loop, even if it is unchanged.

This is based on a similar change to `ATMegaKeyboard`.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/473/head
Gergely Nagy 6 years ago
parent 3202bc417e
commit e63341babb
No known key found for this signature in database
GPG Key ID: AC1E90BAC433F68F

@ -120,10 +120,13 @@ void ErgoDox::actOnMatrixScan() {
}
void ErgoDox::scanMatrix() {
if (!do_scan_)
return;
if (do_scan_) {
do_scan_ = false;
// We only want to update our matrix if the timer has expired.
readMatrix();
}
readMatrix();
// We ALWAYS want to tell Kaleidoscope about the state of the matrix
actOnMatrixScan();
}

Loading…
Cancel
Save