diff options
author | Brian Cully <bjc@kublai.com> | 2018-11-25 11:14:02 -0500 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2018-11-25 11:14:02 -0500 |
commit | 09f420ea3d4d9de0f058b14f4a79aa6572c30b5a (patch) | |
tree | 10b0d58a38243a8d3165bcab61d398243d741730 | |
parent | 9d9d273d47c1c3beddabdd282e4cd0c2fd52509f (diff) | |
download | Kaleidoscope-LayerHighlighter-09f420ea3d4d9de0f058b14f4a79aa6572c30b5a.tar.gz Kaleidoscope-LayerHighlighter-09f420ea3d4d9de0f058b14f4a79aa6572c30b5a.zip |
Reset LED state every cycle when layer is active.
Fixes interaction with other layer effects.
-rw-r--r-- | src/Kaleidoscope-LayerHighlighter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Kaleidoscope-LayerHighlighter.cpp b/src/Kaleidoscope-LayerHighlighter.cpp index 7c30761..d81c6a7 100644 --- a/src/Kaleidoscope-LayerHighlighter.cpp +++ b/src/Kaleidoscope-LayerHighlighter.cpp @@ -27,6 +27,7 @@ kaleidoscope::EventHandlerResult LayerHighlighter::afterEachCycle() { return kaleidoscope::EventHandlerResult::OK; } + LEDControl.set_mode(LEDControl.get_mode_index()); for (uint8_t r = 0; r < ROWS; r++) { for (uint8_t c = 0; c < COLS; c++) { Key k = Layer.lookupOnActiveLayer(r, c); |