From 39202048ea1fb7d14a5970c805ffd5f0b7f0fcdf Mon Sep 17 00:00:00 2001 From: Christian Starkjohann Date: Fri, 4 Sep 2015 11:45:24 +0200 Subject: For bus-powered devices add the "Remote Wake" attribute to the configuration descriptor. --- usbdrv/usbdrv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: */ -- cgit v1.2.3