Merge pull request #1262 from noerw/fix-typing-breaks-leftkeys

TypingBreaks: fix off-by-one on leftKeys / rightKeys
master
Gergely Nagy 2 years ago committed by GitHub
commit 2f1c96ab4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -103,7 +103,7 @@ EventHandlerResult TypingBreaks::onKeyEvent(KeyEvent &event) {
// So it seems we did not need to lock up. In this case, lets increase key
// counters if need be.
if (event.addr.col() <= Runtime.device().matrix_columns / 2)
if (event.addr.col() < Runtime.device().matrix_columns / 2)
left_hand_keys_++;
else
right_hand_keys_++;

Loading…
Cancel
Save