Merge pull request #4 from tazlor/patch-1

Reset bad keys before each test.
pull/365/head
Gergely Nagy 7 years ago committed by GitHub
commit f80525e7e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -95,6 +95,9 @@ void TestMode_::testMatrix() {
for (auto temp = 0; temp < 16; temp++) { for (auto temp = 0; temp < 16; temp++) {
KeyboardHardware.readMatrix(); KeyboardHardware.readMatrix();
} }
// Reset bad keys from previous tests.
leftBadKeys = 0;
rgihtBadKeys = 0;
while (1) { while (1) {
KeyboardHardware.readMatrix(); KeyboardHardware.readMatrix();
if (KeyboardHardware.leftHandState.all == TEST_MODE_KEY_COMBO) { if (KeyboardHardware.leftHandState.all == TEST_MODE_KEY_COMBO) {

Loading…
Cancel
Save