Turn off the LEDs when exiting NumLock mode.

pull/365/head
Jesse Vincent 7 years ago
parent 6dc23db20b
commit 9fa29b709d
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -45,6 +45,9 @@ const macro_t *NumLock_::toggle() {
if (Layer.isOn(numPadLayer)) {
Layer.off(numPadLayer);
// Reset all LEDs to off to hopefully give the previous LED effect
// a better starting state
LEDControl.set_all_leds_to({0, 0, 0});
LEDControl.init_mode();
} else {
Layer.on(numPadLayer);

Loading…
Cancel
Save