LEDControl: Don't sync LEDs when paused

When `LEDControl` is paused, we want to pause not just the LED modes, but *all*
LED operations. The easiest way to do this is to not sync them.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/444/head
Gergely Nagy 6 years ago
parent aa399ff100
commit cac8e0f614
No known key found for this signature in database
GPG Key ID: AC1E90BAC433F68F

@ -130,6 +130,9 @@ cRGB LEDControl::getCrgbAt(int8_t i) {
} }
void LEDControl::syncLeds(void) { void LEDControl::syncLeds(void) {
if (paused)
return;
KeyboardHardware.syncLeds(); KeyboardHardware.syncLeds();
} }

Loading…
Cancel
Save