aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Model01-Firmware.ino9
1 files changed, 3 insertions, 6 deletions
diff --git a/Model01-Firmware.ino b/Model01-Firmware.ino
index 32623c3..01fe286 100644
--- a/Model01-Firmware.ino
+++ b/Model01-Firmware.ino
@@ -310,7 +310,7 @@ static void anyKeyMacro(uint8_t keyState) {
}
if (keyIsPressed(keyState))
- kaleidoscope::hid::pressKey(lastKey, toggledOn);
+ Kaleidoscope.hid().keyboard().pressKey(lastKey, toggledOn);
}
@@ -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;