From e3acde94194bcc0c145ab5cf4e9109107b4e05c8 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Fri, 24 Aug 2018 23:23:08 -0700 Subject: [PATCH] rename a variable that didn't match the style guide Signed-off-by: Jesse Vincent --- src/Kaleidoscope-NumPad.cpp | 10 +++++----- src/Kaleidoscope-NumPad.h | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Kaleidoscope-NumPad.cpp b/src/Kaleidoscope-NumPad.cpp index 18d86928..d90fbcdc 100644 --- a/src/Kaleidoscope-NumPad.cpp +++ b/src/Kaleidoscope-NumPad.cpp @@ -19,7 +19,7 @@ #include "Kaleidoscope.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; bool NumPad_::numlockUnsynced = false; bool NumPad_::originalNumLockState = false; @@ -67,8 +67,8 @@ void NumPad_::setKeyboardLEDColors(void) { Key layer_key = Layer.getKey(numPadLayer, r, c); if (k == LockLayer(numPadLayer)) { - numpad_lock_key_row = r; - numpad_lock_key_col = c; + numpadLayerToggleKeyRow = r; + numpadLayerToggleKeyCol = c; } 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); - LEDControl.setCrgbAt(numpad_lock_key_row, numpad_lock_key_col, lock_color); + LEDControl.setCrgbAt(numpadLayerToggleKeyRow, numpadLayerToggleKeyCol, lock_color); } } diff --git a/src/Kaleidoscope-NumPad.h b/src/Kaleidoscope-NumPad.h index 1d3595e9..016ded65 100644 --- a/src/Kaleidoscope-NumPad.h +++ b/src/Kaleidoscope-NumPad.h @@ -38,8 +38,8 @@ class NumPad_ : public kaleidoscope::Plugin { bool getNumlockState(void); void syncNumlockState(bool); - static uint8_t numpad_lock_key_row; - static uint8_t numpad_lock_key_col; + static uint8_t numpadLayerToggleKeyRow; + static uint8_t numpadLayerToggleKeyCol; static bool numlockUnsynced; static bool originalNumLockState; };