diff --git a/src/Kaleidoscope/GhostInTheFirmware.cpp b/src/Kaleidoscope/GhostInTheFirmware.cpp index 0dd60b9e..b9c62f41 100644 --- a/src/Kaleidoscope/GhostInTheFirmware.cpp +++ b/src/Kaleidoscope/GhostInTheFirmware.cpp @@ -39,8 +39,8 @@ void GhostInTheFirmware::activate(void) { is_active_ = true; } -void GhostInTheFirmware::loopHook(bool postClear) { - if (postClear || !is_active_) +void GhostInTheFirmware::loopHook(bool is_post_clear) { + if (is_post_clear || !is_active_) return; if (press_timeout_ == 0) { diff --git a/src/Kaleidoscope/GhostInTheFirmware.h b/src/Kaleidoscope/GhostInTheFirmware.h index e51f1fc6..131d0153 100644 --- a/src/Kaleidoscope/GhostInTheFirmware.h +++ b/src/Kaleidoscope/GhostInTheFirmware.h @@ -44,7 +44,7 @@ class GhostInTheFirmware : public KaleidoscopePlugin { static uint16_t press_timeout_; static uint16_t delay_timeout_; - static void loopHook(bool postClear); + static void loopHook(bool is_post_clear); }; }