Remove some unnecessary namespace qualifiers from LEDControl

Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
pull/1024/head
Michael Richters 4 years ago
parent e4b6499070
commit f6e9896697
No known key found for this signature in database
GPG Key ID: 1288FD13E4EEF0C0

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

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

Loading…
Cancel
Save