Fixes to make cpplint happy

pull/389/head
Jesse Vincent 8 years ago
parent 798fb5e0f0
commit f23ce58644
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -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() {

@ -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;
}

Loading…
Cancel
Save