nonolith / USB-XMEGA

USB stack for Atmel ATxmega32A4U and related parts
http://nonolithlabs.com
38 stars 13 forks source link

Bug in source?... #6

Closed masterxq closed 9 years ago

masterxq commented 9 years ago

In the function CALLBACK_USB_GetDescriptor in the exsample you wrote: const uint8_t DescriptorType = (wValue >> 8); const uint8_t DescriptorNumber = (wValue & 0xFF); are you sure? I think it should look like this: const uint8_t DescriptorType = (wValue >> 8); const uint8_t DescriptorNumber = (wValue & 0xF);

Regards

masterxq commented 9 years ago

Sorry my mistake...