rename a variable that didn't match the style guide

Signed-off-by: Jesse Vincent <jesse@keyboard.io>
pull/365/head
Jesse Vincent 6 years ago
parent c6886b09fb
commit e3acde9419

@ -19,7 +19,7 @@
#include "Kaleidoscope.h" #include "Kaleidoscope.h"
#include "layers.h" #include "layers.h"
byte NumPad_::numpad_lock_key_row = 255, NumPad_::numpad_lock_key_col = 255; byte NumPad_::numpadLayerToggleKeyRow = 255, NumPad_::numpadLayerToggleKeyCol = 255;
uint8_t NumPad_::numPadLayer; uint8_t NumPad_::numPadLayer;
bool NumPad_::numlockUnsynced = false; bool NumPad_::numlockUnsynced = false;
bool NumPad_::originalNumLockState = false; bool NumPad_::originalNumLockState = false;
@ -67,8 +67,8 @@ void NumPad_::setKeyboardLEDColors(void) {
Key layer_key = Layer.getKey(numPadLayer, r, c); Key layer_key = Layer.getKey(numPadLayer, r, c);
if (k == LockLayer(numPadLayer)) { if (k == LockLayer(numPadLayer)) {
numpad_lock_key_row = r; numpadLayerToggleKeyRow = r;
numpad_lock_key_col = c; numpadLayerToggleKeyCol = c;
} }
if ((k != layer_key) || (k == Key_NoKey) || (k.flags != KEY_FLAGS)) { if ((k != layer_key) || (k == Key_NoKey) || (k.flags != KEY_FLAGS)) {
@ -79,11 +79,11 @@ void NumPad_::setKeyboardLEDColors(void) {
} }
} }
if ((numpad_lock_key_row <= ROWS) && (numpad_lock_key_col <= COLS)) { if ((numpadLayerToggleKeyRow <= ROWS) && (numpadLayerToggleKeyCol <= COLS)) {
cRGB lock_color = breath_compute(lock_hue); cRGB lock_color = breath_compute(lock_hue);
LEDControl.setCrgbAt(numpad_lock_key_row, numpad_lock_key_col, lock_color); LEDControl.setCrgbAt(numpadLayerToggleKeyRow, numpadLayerToggleKeyCol, lock_color);
} }
} }

@ -38,8 +38,8 @@ class NumPad_ : public kaleidoscope::Plugin {
bool getNumlockState(void); bool getNumlockState(void);
void syncNumlockState(bool); void syncNumlockState(bool);
static uint8_t numpad_lock_key_row; static uint8_t numpadLayerToggleKeyRow;
static uint8_t numpad_lock_key_col; static uint8_t numpadLayerToggleKeyCol;
static bool numlockUnsynced; static bool numlockUnsynced;
static bool originalNumLockState; static bool originalNumLockState;
}; };

Loading…
Cancel
Save