aboutsummaryrefslogtreecommitdiffstats
path: root/Demos
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2015-12-22 22:34:50 +1100
committerDean Camera <dean@fourwalledcubicle.com>2015-12-22 22:34:50 +1100
commitd0161e0a9bbc8d1a059a32e1c21fdd201cce1f3c (patch)
tree4efc1f0ee985e4ae050336145a0284d216f0dfdb /Demos
parentdfdf4de8fa798a5d66267a1d11107cbe8f76bcc8 (diff)
downloadlufa-d0161e0a9bbc8d1a059a32e1c21fdd201cce1f3c.tar.gz
lufa-d0161e0a9bbc8d1a059a32e1c21fdd201cce1f3c.tar.bz2
lufa-d0161e0a9bbc8d1a059a32e1c21fdd201cce1f3c.zip
Fixed low level RNDIS demo incorrectly setting the RNDIS state when a null packet filter was requested.
Diffstat (limited to 'Demos')
-rw-r--r--Demos/Device/LowLevel/RNDISEthernet/Lib/RNDIS.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demos/Device/LowLevel/RNDISEthernet/Lib/RNDIS.c b/Demos/Device/LowLevel/RNDISEthernet/Lib/RNDIS.c
index 08ec74aa9..be13ce277 100644
--- a/Demos/Device/LowLevel/RNDISEthernet/Lib/RNDIS.c
+++ b/Demos/Device/LowLevel/RNDISEthernet/Lib/RNDIS.c
@@ -380,7 +380,7 @@ static bool ProcessNDISSet(uint32_t OId, void* SetData, uint16_t SetSize)
CurrPacketFilter = *((uint32_t*)SetData);
/* Set the RNDIS state to initialized if the packet filter is non-zero */
- CurrRNDISState = ((CurrPacketFilter) ? RNDIS_Data_Initialized : RNDIS_Data_Initialized);
+ CurrRNDISState = ((CurrPacketFilter) ? RNDIS_Data_Initialized : RNDIS_Initialized);
return true;
case OID_802_3_MULTICAST_LIST: