From 518dda8e57f0c08ebbf0eeaf3009a7cc168bd91d Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Wed, 8 Feb 2017 18:54:27 -0800 Subject: [PATCH] add a way to get out of test mode --- src/Keyboardio-Model01-TestMode.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Keyboardio-Model01-TestMode.cpp b/src/Keyboardio-Model01-TestMode.cpp index 6cdc096b..1eff9dda 100644 --- a/src/Keyboardio-Model01-TestMode.cpp +++ b/src/Keyboardio-Model01-TestMode.cpp @@ -79,6 +79,9 @@ void TestMode_::test_matrix () { LEDControl.set_all_leds_to(50,0,0); while(1) { KeyboardHardware.read_matrix(); + if (KeyboardHardware.leftHandState.all == (R0C0 | R0C6 | R3C6 ) { + break; + } for (byte row = 0; row < 4; row++) { for (byte col = 0; col < 8; col++) {