summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGergely Nagy <algernon@keyboard.io>2018-06-04 07:59:49 +0200
committerGergely Nagy <algernon@keyboard.io>2018-06-04 07:59:49 +0200
commitbcd694f40469e820e6876b421f9e009ba06ef5a6 (patch)
treeab7c9eff42fbd1774bcdf763a54ae6699e0824d6
parentc7fab58f63b99013baa89b6637f36ad7be3bb3bc (diff)
downloadmodel01-firmware-bcd694f40469e820e6876b421f9e009ba06ef5a6.tar.gz
model01-firmware-bcd694f40469e820e6876b421f9e009ba06ef5a6.tar.bz2
model01-firmware-bcd694f40469e820e6876b421f9e009ba06ef5a6.zip
Drop the use of HostPowerManagement.enableWakeup()
It is not necessary anymore, as BootKeyboard supports wakeup itself now. As such, also updated the comments regarding the plugin in KALEIDOSCOPE_INIT_PLUGINS. Signed-off-by: Gergely Nagy <algernon@keyboard.io>
-rw-r--r--Model01-Firmware.ino7
1 files changed, 2 insertions, 5 deletions
diff --git a/Model01-Firmware.ino b/Model01-Firmware.ino
index 71d87e2..eeef307 100644
--- a/Model01-Firmware.ino
+++ b/Model01-Firmware.ino
@@ -330,8 +330,8 @@ KALEIDOSCOPE_INIT_PLUGINS(
// The MouseKeys plugin lets you add keys to your keymap which move the mouse.
MouseKeys,
- // The HostPowerManagement plugin enables waking up the host from suspend,
- // and allows us to turn LEDs off when it goes to sleep.
+ // The HostPowerManagement plugin allows us to turn LEDs off when then host
+ // goes to sleep, and resume them when it wakes up.
HostPowerManagement
);
@@ -360,9 +360,6 @@ void setup() {
// see https://github.com/keyboardio/Kaleidoscope-LED-Stalker
StalkerEffect.variant = STALKER(BlazingTrail);
- // We want the keyboard to be able to wake the host up from suspend.
- HostPowerManagement.enableWakeup();
-
// We want to make sure that the firmware starts with LED effects off
// This avoids over-taxing devices that don't have a lot of power to share
// with USB devices