Model01-TestMode: Make cpplint happy

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/388/head
Gergely Nagy 6 years ago
parent 266d8e658f
commit dbf8a6731b
No known key found for this signature in database
GPG Key ID: AC1E90BAC433F68F

@ -107,14 +107,11 @@ void TestMode::handleKeyEvent(side_data_t *side, keydata_t *oldState, keydata_t
// If the key is held down
if (keyState == HELD) {
KeyboardHardware.setCrgbAt(row, col_offset - col, green);
}
// If we triggered chatter detection ever on this key
else if (bitRead(side->badKeys, keynum) == 1) {
} else if (bitRead(side->badKeys, keynum) == 1) {
// If we triggered chatter detection ever on this key
KeyboardHardware.setCrgbAt(row, col_offset - col, red);
}
// If the key was just released
else if (keyState == TOGGLED_OFF) {
} else if (keyState == TOGGLED_OFF) {
// If the key was just released
KeyboardHardware.setCrgbAt(row, col_offset - col, blue);
}
}

@ -32,7 +32,7 @@ class TestMode : public kaleidoscope::Plugin {
} side_data_t;
TestMode(void) {};
TestMode(void) {}
EventHandlerResult beforeReportingState();

Loading…
Cancel
Save