aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/Class
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2012-05-26 16:02:20 +0000
committerDean Camera <dean@fourwalledcubicle.com>2012-05-26 16:02:20 +0000
commit35564bb1a742be5556812fb763e6d0ceb45fefce (patch)
treeb17d8bff005b2fdeaec53fa9253577dc9154ef2e /LUFA/Drivers/USB/Class
parentf235021abe547f3366459480ba17f548f3119ee2 (diff)
downloadlufa-35564bb1a742be5556812fb763e6d0ceb45fefce.tar.gz
lufa-35564bb1a742be5556812fb763e6d0ceb45fefce.tar.bz2
lufa-35564bb1a742be5556812fb763e6d0ceb45fefce.zip
Fixed swapped Little Endian/Big Endian endpoint and pipe write code for the UC3 devices (thanks to Andrew Chu).
Diffstat (limited to 'LUFA/Drivers/USB/Class')
-rw-r--r--LUFA/Drivers/USB/Class/Device/RNDISClassDevice.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/LUFA/Drivers/USB/Class/Device/RNDISClassDevice.c b/LUFA/Drivers/USB/Class/Device/RNDISClassDevice.c
index e5aa40cd0..6b710c3d5 100644
--- a/LUFA/Drivers/USB/Class/Device/RNDISClassDevice.c
+++ b/LUFA/Drivers/USB/Class/Device/RNDISClassDevice.c
@@ -406,8 +406,7 @@ static bool RNDIS_Device_ProcessNDISSet(USB_ClassInfo_RNDIS_Device_t* const RNDI
{
case OID_GEN_CURRENT_PACKET_FILTER:
RNDISInterfaceInfo->State.CurrPacketFilter = le32_to_cpu(*((uint32_t*)SetData));
- RNDISInterfaceInfo->State.CurrRNDISState = le32_to_cpu((RNDISInterfaceInfo->State.CurrPacketFilter) ?
- RNDIS_Data_Initialized : RNDIS_Data_Initialized);
+ RNDISInterfaceInfo->State.CurrRNDISState = (RNDISInterfaceInfo->State.CurrPacketFilter) ? RNDIS_Data_Initialized : RNDIS_Initialized;
return true;
case OID_802_3_MULTICAST_LIST: