diff --git a/src/Kaleidoscope-Model01-TestMode.cpp b/src/Kaleidoscope-Model01-TestMode.cpp index 61c18580..80f72020 100644 --- a/src/Kaleidoscope-Model01-TestMode.cpp +++ b/src/Kaleidoscope-Model01-TestMode.cpp @@ -6,8 +6,6 @@ cRGB red; cRGB blue; cRGB green; -#define LED_TEST_DELAY 2000 - TestMode_::TestMode_(void) { } @@ -23,7 +21,7 @@ void TestMode_::begin(void) { void TestMode_::loopHook(bool postClear) { if (postClear) return; - if (KeyboardHardware.leftHandState.all == (R0C0 | R0C6 | R3C6) + if (KeyboardHardware.leftHandState.all == TEST_MODE_KEY_COMBO // && KeyboardHardware.rightHandState.all == combo.rightHand ) { run_tests(); @@ -81,7 +79,7 @@ void TestMode_::test_matrix() { LEDControl.set_all_leds_to(50, 0, 0); while (1) { KeyboardHardware.read_matrix(); - if (KeyboardHardware.leftHandState.all == (R0C0 | R0C6 | R3C6)) { + if (KeyboardHardware.leftHandState.all == TEST_MODE_KEY_COMBO) { break; } for (byte row = 0; row < 4; row++) { diff --git a/src/Kaleidoscope-Model01-TestMode.h b/src/Kaleidoscope-Model01-TestMode.h index eac6cbcb..f9a0fb02 100644 --- a/src/Kaleidoscope-Model01-TestMode.h +++ b/src/Kaleidoscope-Model01-TestMode.h @@ -3,6 +3,8 @@ #include #include "Kaleidoscope.h" +#define TEST_MODE_KEY_COMBO (R0C0 | R0C6 | R3C6) + class TestMode_ : public KaleidoscopePlugin { public: TestMode_(void);