aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device/RNDISEthernet
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-04-13 06:58:46 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-04-13 06:58:46 +0000
commitaf02b5b0c953931ce8b8925439972b1b4bd1d77e (patch)
tree711f70ec11c912f50638beb44e810cf2d8bf86f5 /Demos/Device/RNDISEthernet
parentd3484e6bdd0f92203829770518443045a78ce74b (diff)
downloadlufa-af02b5b0c953931ce8b8925439972b1b4bd1d77e.tar.gz
lufa-af02b5b0c953931ce8b8925439972b1b4bd1d77e.tar.bz2
lufa-af02b5b0c953931ce8b8925439972b1b4bd1d77e.zip
Fixed RNDISEthenet demo checking the incorrect message field for packet size constraints (thanks to Jonathan).
Fixed WriteNextReport code in the GenericHIDHost demo using incorrect parameter types and not selecting the correct endpoint.
Diffstat (limited to 'Demos/Device/RNDISEthernet')
-rw-r--r--Demos/Device/RNDISEthernet/RNDISEthernet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demos/Device/RNDISEthernet/RNDISEthernet.c b/Demos/Device/RNDISEthernet/RNDISEthernet.c
index 78c77c8eb..d573a769b 100644
--- a/Demos/Device/RNDISEthernet/RNDISEthernet.c
+++ b/Demos/Device/RNDISEthernet/RNDISEthernet.c
@@ -284,7 +284,7 @@ TASK(RNDIS_Task)
Endpoint_Read_Stream_LE(&RNDISPacketHeader, sizeof(RNDIS_PACKET_MSG_t));
/* Stall the request if the data is too large */
- if (RNDISPacketHeader.MessageLength > ETHERNET_FRAME_SIZE_MAX)
+ if (RNDISPacketHeader.DataLength > ETHERNET_FRAME_SIZE_MAX)
{
Endpoint_StallTransaction();
return;