From cac8e0f6149f17f9d9f40ba4bc85939706a9a6a4 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Thu, 25 Oct 2018 08:45:15 +0200 Subject: [PATCH] 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 --- src/kaleidoscope/plugin/LEDControl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/kaleidoscope/plugin/LEDControl.cpp b/src/kaleidoscope/plugin/LEDControl.cpp index 54b913ba..b74093af 100644 --- a/src/kaleidoscope/plugin/LEDControl.cpp +++ b/src/kaleidoscope/plugin/LEDControl.cpp @@ -130,6 +130,9 @@ cRGB LEDControl::getCrgbAt(int8_t i) { } void LEDControl::syncLeds(void) { + if (paused) + return; + KeyboardHardware.syncLeds(); }