aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Kaleidoscope-LayerHighlighter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Kaleidoscope-LayerHighlighter.cpp b/src/Kaleidoscope-LayerHighlighter.cpp
index 30d0611..3ed56cb 100644
--- a/src/Kaleidoscope-LayerHighlighter.cpp
+++ b/src/Kaleidoscope-LayerHighlighter.cpp
@@ -9,8 +9,10 @@ kaleidoscope::EventHandlerResult LayerHighlighter::onSetup(void) {
}
kaleidoscope::EventHandlerResult LayerHighlighter::afterEachCycle() {
- if (!Layer.isOn(layer))
+ if (!Layer.isOn(layer)) {
+ LEDControl.set_mode(LEDControl.get_mode_index());
return kaleidoscope::EventHandlerResult::OK;
+ }
LEDControl.set_mode(LEDControl.get_mode_index());