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 <algernon@madhouse-project.org>
pull/365/head
Gergely Nagy 7 years ago
parent 98bf56d097
commit 40328cd342

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

Loading…
Cancel
Save