1
0

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>
This commit is contained in:
Gergely Nagy 2018-06-04 07:59:49 +02:00
parent c7fab58f63
commit bcd694f404

View File

@ -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