1
0

Merge pull request #76 from keyboardio/suspend-ledoff-fix

Fix turning LEDs off on suspend
This commit is contained in:
Jesse Vincent 2019-01-20 09:46:34 -08:00 committed by GitHub
commit f3f687ed63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -355,9 +355,9 @@ static kaleidoscope::plugin::LEDSolidColor solidViolet(130, 0, 120);
void toggleLedsOnSuspendResume(kaleidoscope::plugin::HostPowerManagement::Event event) {
switch (event) {
case kaleidoscope::plugin::HostPowerManagement::Suspend:
LEDControl.paused = true;
LEDControl.set_all_leds_to({0, 0, 0});
LEDControl.syncLeds();
LEDControl.paused = true;
break;
case kaleidoscope::plugin::HostPowerManagement::Resume:
LEDControl.paused = false;