diff options
author | Drashna Jaelre <drashna@live.com> | 2020-04-05 01:18:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-05 18:18:19 +1000 |
commit | 845953cc67e33dbd9ac5007ba3b39562f5aea962 (patch) | |
tree | bac32fdde7751e8c5487af480bf41b76a0fda39f /tmk_core/protocol/vusb/vusb.c | |
parent | c3c2eb71e14500117aa974e10fa670fbca893661 (diff) |
V-USB remote wakeup (#7627)
* V-USB remote wakeup
Backport from tmk/tmk_keyboard@391c979be751eaf113c8f53c36644a6bb6ff12f6
* Change vusb.c remote wake config
as per fauxpark's suggestion
Diffstat (limited to 'tmk_core/protocol/vusb/vusb.c')
-rw-r--r-- | tmk_core/protocol/vusb/vusb.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tmk_core/protocol/vusb/vusb.c b/tmk_core/protocol/vusb/vusb.c index 00314ebe83..470d29ba39 100644 --- a/tmk_core/protocol/vusb/vusb.c +++ b/tmk_core/protocol/vusb/vusb.c @@ -521,11 +521,7 @@ const PROGMEM usbConfigurationDescriptor_t usbConfigurationDescriptor = { # endif .bConfigurationValue = 0x01, .iConfiguration = 0x00, -# if USB_CFG_IS_SELF_POWERED - .bmAttributes = (1 << 7) | USBATTR_SELFPOWER, -# else - .bmAttributes = (1 << 7), -# endif + .bmAttributes = (1 << 7) | USBATTR_REMOTEWAKE, .bMaxPower = USB_MAX_POWER_CONSUMPTION / 2 }, |