Fixed bug in RNDISEthernet and DualCDC demos not using the correct USB_ControlRequest structure for control request data.

Fixed documentation showing incorrect USB mode support on the supported AVRs list.
This commit is contained in:
Dean Camera 2009-05-11 07:52:13 +00:00
parent 3f48497874
commit e0985b9950
5 changed files with 13 additions and 22 deletions

View file

@ -186,16 +186,8 @@ EVENT_HANDLER(USB_ConfigurationChanged)
*/
EVENT_HANDLER(USB_UnhandledControlPacket)
{
uint8_t* LineCodingData;
/* Discard the unused wValue parameter */
Endpoint_Discard_Word();
/* wIndex indicates the interface being controlled */
uint16_t wIndex = Endpoint_Read_Word_LE();
/* Determine which interface's Line Coding data is being set from the wIndex parameter */
LineCodingData = (wIndex == 0) ? (uint8_t*)&LineCoding1 : (uint8_t*)&LineCoding2;
uint8_t* LineCodingData = (USB_ControlRequest.wIndex == 0) ? (uint8_t*)&LineCoding1 : (uint8_t*)&LineCoding2;
/* Process CDC specific control requests */
switch (USB_ControlRequest.bRequest)