aboutsummaryrefslogtreecommitdiffstats
path: root/Model01-Firmware.ino
diff options
context:
space:
mode:
Diffstat (limited to 'Model01-Firmware.ino')
-rw-r--r--Model01-Firmware.ino7
1 files changed, 2 insertions, 5 deletions
diff --git a/Model01-Firmware.ino b/Model01-Firmware.ino
index 9a97c83..01fe286 100644
--- a/Model01-Firmware.ino
+++ b/Model01-Firmware.ino
@@ -361,13 +361,10 @@ static kaleidoscope::plugin::LEDSolidColor solidViolet(130, 0, 120);
void toggleLedsOnSuspendResume(kaleidoscope::plugin::HostPowerManagement::Event event) {
switch (event) {
case kaleidoscope::plugin::HostPowerManagement::Suspend:
- LEDControl.set_all_leds_to({0, 0, 0});
- LEDControl.syncLeds();
- LEDControl.paused = true;
+ LEDControl.disable();
break;
case kaleidoscope::plugin::HostPowerManagement::Resume:
- LEDControl.paused = false;
- LEDControl.refreshAll();
+ LEDControl.enable();
break;
case kaleidoscope::plugin::HostPowerManagement::Sleep:
break;