From c0a2b43c23c1bac64962d778d59a299405f3143c Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Mon, 13 Nov 2017 17:44:53 -0800 Subject: [PATCH] Slightly clean up our startup mode to be faster and more likely to eat extra keypresses --- src/Kaleidoscope-Model01-TestMode.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Kaleidoscope-Model01-TestMode.cpp b/src/Kaleidoscope-Model01-TestMode.cpp index 6a045625..efd017b1 100644 --- a/src/Kaleidoscope-Model01-TestMode.cpp +++ b/src/Kaleidoscope-Model01-TestMode.cpp @@ -42,7 +42,10 @@ void TestMode_::loopHook(bool postClear) { } void TestMode_::waitForKeypress() { - delay(25); + for (auto temp = 0; temp < 16; temp++) { + KeyboardHardware.readMatrix(); + } + delay(2); while (1) { KeyboardHardware.readMatrix(); if (KeyboardHardware.leftHandState.all == R3C6