aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Starkjohann <cs+github@obdev.at>2015-09-04 11:45:24 +0200
committerChristian Starkjohann <cs+github@obdev.at>2015-09-04 11:45:24 +0200
commit39202048ea1fb7d14a5970c805ffd5f0b7f0fcdf (patch)
treeec8e01331ab84bf0f00bf385f3f9a5337efda57e
parent6f64e80f219273967d6ac7096f3ca3d7db5a0e79 (diff)
downloadv-usb-39202048ea1fb7d14a5970c805ffd5f0b7f0fcdf.tar.gz
v-usb-39202048ea1fb7d14a5970c805ffd5f0b7f0fcdf.tar.bz2
v-usb-39202048ea1fb7d14a5970c805ffd5f0b7f0fcdf.zip
For bus-powered devices add the "Remote Wake" attribute to the configuration descriptor.
-rw-r--r--usbdrv/usbdrv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usbdrv/usbdrv.c b/usbdrv/usbdrv.c
index 6c61e3b..b6df986 100644
--- a/usbdrv/usbdrv.c
+++ b/usbdrv/usbdrv.c
@@ -149,7 +149,7 @@ PROGMEM const char usbDescriptorConfiguration[] = { /* USB configuration desc
#if USB_CFG_IS_SELF_POWERED
(1 << 7) | USBATTR_SELFPOWER, /* attributes */
#else
- (1 << 7), /* attributes */
+ (1 << 7) | USBATTR_REMOTEWAKE, /* attributes */
#endif
USB_CFG_MAX_BUS_POWER/2, /* max USB current in 2mA units */
/* interface descriptor follows inline: */