From 40328cd34262d2779a1ab8b980901c3d15dceba7 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sun, 2 Jul 2017 18:42:07 +0200 Subject: [PATCH] Re-init the active LED mode when NumLock is turned off To make sure that the active LED mode is restored to a good state, re-init it. Without this change, LED modes that do all their work in the `init()` method will not refresh when NumLock is turned off. Signed-off-by: Gergely Nagy --- src/Kaleidoscope-Numlock.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Kaleidoscope-Numlock.cpp b/src/Kaleidoscope-Numlock.cpp index 13bdf58c..e5e19f4b 100644 --- a/src/Kaleidoscope-Numlock.cpp +++ b/src/Kaleidoscope-Numlock.cpp @@ -43,6 +43,7 @@ const macro_t *NumLock_::toggle(byte row_, byte col_, uint8_t numPadLayer) { if (Layer.isOn(numPadLayer)) { Layer.off(numPadLayer); + LEDControl.init_mode(); } else { Layer.on(numPadLayer); }