From f6e989669703834cd25a0a0e661fa30d561eba53 Mon Sep 17 00:00:00 2001 From: Michael Richters Date: Tue, 6 Apr 2021 16:28:23 -0500 Subject: [PATCH] Remove some unnecessary namespace qualifiers from LEDControl Signed-off-by: Michael Richters --- src/kaleidoscope/plugin/LEDControl.cpp | 14 +++++++------- src/kaleidoscope/plugin/LEDControl.h | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/kaleidoscope/plugin/LEDControl.cpp b/src/kaleidoscope/plugin/LEDControl.cpp index ffb6ec4f..7f80b126 100644 --- a/src/kaleidoscope/plugin/LEDControl.cpp +++ b/src/kaleidoscope/plugin/LEDControl.cpp @@ -71,7 +71,7 @@ LEDControl::set_mode(uint8_t mode_) { refreshAll(); - kaleidoscope::Hooks::onLEDModeChange(); + Hooks::onLEDModeChange(); } void LEDControl::activate(LEDModeInterface *plugin) { @@ -132,7 +132,7 @@ void LEDControl::syncLeds(void) { Runtime.device().syncLeds(); } -kaleidoscope::EventHandlerResult LEDControl::onSetup() { +EventHandlerResult LEDControl::onSetup() { set_all_leds_to({0, 0, 0}); LEDModeManager::setupPersistentLEDModes(); @@ -156,7 +156,7 @@ void LEDControl::enable() { Runtime.device().syncLeds(); } -kaleidoscope::EventHandlerResult LEDControl::onKeyEvent(KeyEvent &event) { +EventHandlerResult LEDControl::onKeyEvent(KeyEvent &event) { if (event.key.getFlags() != (SYNTHETIC | IS_INTERNAL | LED_TOGGLE)) return EventHandlerResult::OK; @@ -190,12 +190,12 @@ kaleidoscope::EventHandlerResult LEDControl::onKeyEvent(KeyEvent &event) { } } - return kaleidoscope::EventHandlerResult::EVENT_CONSUMED; + return EventHandlerResult::EVENT_CONSUMED; } -kaleidoscope::EventHandlerResult LEDControl::afterEachCycle() { +EventHandlerResult LEDControl::afterEachCycle() { if (!enabled_) - return kaleidoscope::EventHandlerResult::OK; + return EventHandlerResult::OK; if (Runtime.hasTimeExpired(syncTimer, syncDelay)) { syncLeds(); @@ -203,7 +203,7 @@ kaleidoscope::EventHandlerResult LEDControl::afterEachCycle() { update(); } - return kaleidoscope::EventHandlerResult::OK; + return EventHandlerResult::OK; } EventHandlerResult FocusLEDCommand::onFocusEvent(const char *command) { diff --git a/src/kaleidoscope/plugin/LEDControl.h b/src/kaleidoscope/plugin/LEDControl.h index 1abe371a..b7e2e2c3 100644 --- a/src/kaleidoscope/plugin/LEDControl.h +++ b/src/kaleidoscope/plugin/LEDControl.h @@ -94,9 +94,9 @@ class LEDControl : public kaleidoscope::Plugin { static uint8_t syncDelay; - kaleidoscope::EventHandlerResult onSetup(); - kaleidoscope::EventHandlerResult onKeyEvent(KeyEvent &event); - kaleidoscope::EventHandlerResult beforeReportingState(); + EventHandlerResult onSetup(); + EventHandlerResult onKeyEvent(KeyEvent &event); + EventHandlerResult afterEachCycle(); static void disable(); static void enable();