diff options
author | Christian Starkjohann <cs+github@obdev.at> | 2009-08-22 10:27:24 +0000 |
---|---|---|
committer | Christian Starkjohann <cs+github@obdev.at> | 2009-08-22 10:27:24 +0000 |
commit | 0d95c64b47fd66bfd6ef4a9e618b30711c12182f (patch) | |
tree | 73ba51e6fbd88d8b1fe616967c00449787924b24 /usbdrv/usbdrv.c | |
parent | 36da169453b7d716fb63dc804c9853956981c64f (diff) | |
download | v-usb-0d95c64b47fd66bfd6ef4a9e618b30711c12182f.tar.gz v-usb-0d95c64b47fd66bfd6ef4a9e618b30711c12182f.tar.bz2 v-usb-0d95c64b47fd66bfd6ef4a9e618b30711c12182f.zip |
- fixed bmAttributes in configuration descriptor
Diffstat (limited to 'usbdrv/usbdrv.c')
-rw-r--r-- | usbdrv/usbdrv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usbdrv/usbdrv.c b/usbdrv/usbdrv.c index cd2ce62..6eb7f22 100644 --- a/usbdrv/usbdrv.c +++ b/usbdrv/usbdrv.c @@ -149,9 +149,9 @@ PROGMEM char usbDescriptorConfiguration[] = { /* USB configuration descriptor 1, /* index of this configuration */ 0, /* configuration name string index */ #if USB_CFG_IS_SELF_POWERED - USBATTR_SELFPOWER, /* attributes */ + (1 << 7) | USBATTR_SELFPOWER, /* attributes */ #else - (char)USBATTR_BUSPOWER, /* attributes */ + (1 << 7), /* attributes */ #endif USB_CFG_MAX_BUS_POWER/2, /* max USB current in 2mA units */ /* interface descriptor follows inline: */ |