aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Vincent <jesse@fsck.com>2019-01-20 09:46:34 -0800
committerGitHub <noreply@github.com>2019-01-20 09:46:34 -0800
commitf3f687ed63e7110ef6c6ee2e8926a3020992cbf7 (patch)
tree8b655da8f0691944a550fbe25b9b5414e57e5d61
parentcf6234b77e96d02fb97d4d32f4edea94bdc46e09 (diff)
parent0095044dd4af6e2fb3be5e60ffe648c4cb9b94d5 (diff)
downloadModel01-Firmware-f3f687ed63e7110ef6c6ee2e8926a3020992cbf7.tar.gz
Model01-Firmware-f3f687ed63e7110ef6c6ee2e8926a3020992cbf7.zip
Merge pull request #76 from keyboardio/suspend-ledoff-fix
Fix turning LEDs off on suspend
-rw-r--r--Model01-Firmware.ino2
1 files changed, 1 insertions, 1 deletions
diff --git a/Model01-Firmware.ino b/Model01-Firmware.ino
index 58b3ebe..0178726 100644
--- a/Model01-Firmware.ino
+++ b/Model01-Firmware.ino
@@ -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;