diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2009-05-11 07:52:13 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2009-05-11 07:52:13 +0000 |
| commit | 820cb04b2d53d500bf6b8c253f2d3f0894a2e5bc (patch) | |
| tree | 375ea039a8800bf413d606ca6f60629c4f677da6 /Demos/Device/RNDISEthernet | |
| parent | 0b43ff3f8de1d557a66efc01d88edb30151ea157 (diff) | |
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.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@543 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Demos/Device/RNDISEthernet')
| -rw-r--r-- | Demos/Device/RNDISEthernet/RNDISEthernet.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/Demos/Device/RNDISEthernet/RNDISEthernet.c b/Demos/Device/RNDISEthernet/RNDISEthernet.c index 8338cdd0..96fef399 100644 --- a/Demos/Device/RNDISEthernet/RNDISEthernet.c +++ b/Demos/Device/RNDISEthernet/RNDISEthernet.c @@ -140,15 +140,6 @@ EVENT_HANDLER(USB_ConfigurationChanged) */
EVENT_HANDLER(USB_UnhandledControlPacket)
{
- /* Discard the unused wValue parameter */
- Endpoint_Discard_Word();
-
- /* Discard the unused wIndex parameter */
- Endpoint_Discard_Word();
-
- /* Read in the wLength parameter */
- uint16_t wLength = Endpoint_Read_Word_LE();
-
/* Process RNDIS class commands */
switch (USB_ControlRequest.bRequest)
{
@@ -159,7 +150,7 @@ EVENT_HANDLER(USB_UnhandledControlPacket) Endpoint_ClearSETUP();
/* Read in the RNDIS message into the message buffer */
- Endpoint_Read_Control_Stream_LE(RNDISMessageBuffer, wLength);
+ Endpoint_Read_Control_Stream_LE(RNDISMessageBuffer, USB_ControlRequest.wLength);
/* Finalize the stream transfer to clear the last packet from the host */
Endpoint_ClearIN();
|
