Fixes so the code compiles. It doesn't, like, work yet or anything.

pull/365/head
Jesse Vincent 8 years ago
parent eae20c72de
commit 82ae004159

@ -20,11 +20,11 @@ void TestMode_::begin(void) {
} }
void TestMode_::loopHook (bool postClear) { void TestMode_::loopHook (bool postClear) {
if (!dictionary || postClear) if ( postClear)
return; return;
if (timer && timer < minInterval) if (timer && timer < minInterval)
timer++; timer++;
if (KeyboardHardware.leftHandState.all == R1C3 | R2C1 | R2C4 | R2C7 if (KeyboardHardware.leftHandState.all == (R1C3 | R2C1 | R2C4 | R2C7)
// && KeyboardHardware.rightHandState.all == combo.rightHand // && KeyboardHardware.rightHandState.all == combo.rightHand
) { ) {
if (timer == 0 || timer >= minInterval || minInterval == 0) { if (timer == 0 || timer >= minInterval || minInterval == 0) {

@ -5,13 +5,17 @@ class TestMode_ {
public: public:
TestMode_(void); TestMode_(void);
void setup(); void setup();
void loop(); static void loop();
void begin();
static uint8_t minInterval;
private: private:
void TestLEDs(); static void TestLEDs();
void TestKeys(); static void TestKeys();
void TestMatrix(); static void TestMatrix();
void TestOneKey(); static void TestOneKey();
static uint8_t timer;
static void loopHook(bool postClear);
}; };
extern TestMode_ TestMode; extern TestMode_ TestMode;

Loading…
Cancel
Save