From dbf8a6731ba02d6effced10b62b4bd17f5da1e26 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Tue, 16 Oct 2018 18:24:11 +0200 Subject: [PATCH] Model01-TestMode: Make cpplint happy Signed-off-by: Gergely Nagy --- src/kaleidoscope/plugin/Model01-TestMode.cpp | 11 ++++------- src/kaleidoscope/plugin/Model01-TestMode.h | 2 +- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/kaleidoscope/plugin/Model01-TestMode.cpp b/src/kaleidoscope/plugin/Model01-TestMode.cpp index c2776ec1..27cf61ed 100644 --- a/src/kaleidoscope/plugin/Model01-TestMode.cpp +++ b/src/kaleidoscope/plugin/Model01-TestMode.cpp @@ -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); } } diff --git a/src/kaleidoscope/plugin/Model01-TestMode.h b/src/kaleidoscope/plugin/Model01-TestMode.h index d1419469..4fc7ba51 100644 --- a/src/kaleidoscope/plugin/Model01-TestMode.h +++ b/src/kaleidoscope/plugin/Model01-TestMode.h @@ -32,7 +32,7 @@ class TestMode : public kaleidoscope::Plugin { } side_data_t; - TestMode(void) {}; + TestMode(void) {} EventHandlerResult beforeReportingState();