From f23ce58644fa1c0b0940091efe7119bfe538d1ca Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sun, 4 Jun 2017 00:19:05 -0700 Subject: [PATCH] Fixes to make cpplint happy --- examples/SpaceCadet/SpaceCadet.ino | 3 +-- src/Kaleidoscope/SpaceCadet.cpp | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/SpaceCadet/SpaceCadet.ino b/examples/SpaceCadet/SpaceCadet.ino index be72a3c7..e887dafa 100644 --- a/examples/SpaceCadet/SpaceCadet.ino +++ b/examples/SpaceCadet/SpaceCadet.ino @@ -36,8 +36,7 @@ const Key keymaps[][ROWS][COLS] PROGMEM = { Key_skip, Key_N, Key_M, Key_Comma, Key_Period, Key_Slash, Key_Minus, Key_RightShift, Key_RightAlt, Key_Spacebar, Key_RightControl, - Key_skip - ), + Key_skip), }; void setup() { diff --git a/src/Kaleidoscope/SpaceCadet.cpp b/src/Kaleidoscope/SpaceCadet.cpp index a3e81aeb..46ef64f2 100644 --- a/src/Kaleidoscope/SpaceCadet.cpp +++ b/src/Kaleidoscope/SpaceCadet.cpp @@ -50,13 +50,13 @@ SpaceCadetShift::eventHandlerHook(Key mappedKey, byte row, byte col, uint8_t key // If a key has been just toggled on... if (key_toggled_on(keyState)) { - if (mappedKey.raw == Key_LeftShift.raw) { // if it is LShift, remember it + if (mappedKey.raw == Key_LeftShift.raw) { // if it is LShift, remember it bitWrite(parenNeeded, 0, 1); startTime = millis(); - } else if (mappedKey.raw == Key_RightShift.raw) { // if it is RShift, remember it + } else if (mappedKey.raw == Key_RightShift.raw) { // if it is RShift, remember it bitWrite(parenNeeded, 1, 1); startTime = millis(); - } else { // if it is something else, we do not need a paren at the end. + } else { // if it is something else, we do not need a paren at the end. parenNeeded = 0; startTime = 0; }