Bring back the LED breathing effect

Signed-off-by: Jesse Vincent <jesse@keyboard.io>
pull/365/head
Jesse Vincent 6 years ago
parent 8fb50b2415
commit efbf158b13

@ -90,12 +90,13 @@ void NumPad_::setKeyboardLEDColors(void) {
kaleidoscope::EventHandlerResult NumPad_::afterEachCycle() { kaleidoscope::EventHandlerResult NumPad_::afterEachCycle() {
if (!Layer.isOn(numPadLayer)) { if (!Layer.isOn(numPadLayer)) {
cleanupNumlockState(); cleanupNumlockState();
} else if (cleanupDone) { } else {
if (cleanupDone) {
// If it's the first time we're in this loop after toggling the Numpad mode on // If it's the first time we're in this loop after toggling the Numpad mode on
syncNumlockState(true); syncNumlockState(true);
setKeyboardLEDColors();
cleanupDone = false; cleanupDone = false;
}
setKeyboardLEDColors();
} }
return kaleidoscope::EventHandlerResult::OK; return kaleidoscope::EventHandlerResult::OK;
} }

Loading…
Cancel
Save