aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device/LowLevel/RNDISEthernet/Lib/ProtocolDecoders.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-07-11 09:50:54 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-07-11 09:50:54 +0000
commit85e85befc41a9a66a49db0afd08e04c88ba38556 (patch)
tree7a056c1f10c57743eb66aefc125e224b61660506 /Demos/Device/LowLevel/RNDISEthernet/Lib/ProtocolDecoders.c
parent7c7778e3cec4cf8df7ec235bbf78557d4abe17af (diff)
downloadlufa-85e85befc41a9a66a49db0afd08e04c88ba38556.tar.gz
lufa-85e85befc41a9a66a49db0afd08e04c88ba38556.tar.bz2
lufa-85e85befc41a9a66a49db0afd08e04c88ba38556.zip
More endianness porting of the LUFA device mode class drivers.
Add endianness information to the class driver and core structure definitions. Move out the unused Ethernet_Frame_Info_t structure definition to the RNDIS device demos where it is needed.
Diffstat (limited to 'Demos/Device/LowLevel/RNDISEthernet/Lib/ProtocolDecoders.c')
-rw-r--r--Demos/Device/LowLevel/RNDISEthernet/Lib/ProtocolDecoders.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Demos/Device/LowLevel/RNDISEthernet/Lib/ProtocolDecoders.c b/Demos/Device/LowLevel/RNDISEthernet/Lib/ProtocolDecoders.c
index cadd33563..827dc1ac3 100644
--- a/Demos/Device/LowLevel/RNDISEthernet/Lib/ProtocolDecoders.c
+++ b/Demos/Device/LowLevel/RNDISEthernet/Lib/ProtocolDecoders.c
@@ -84,10 +84,7 @@ void DecodeEthernetFrameHeader(void* InDataStart)
FrameHeader->Destination.Octets[4],
FrameHeader->Destination.Octets[5]);
- if (SwapEndian_16(FrameIN.FrameLength) > ETHERNET_VER2_MINSIZE)
- printf_P(PSTR(" + Protocol: 0x%04x\r\n"), SwapEndian_16(FrameHeader->EtherType));
- else
- printf_P(PSTR(" + Protocol: UNKNOWN E1\r\n"));
+ printf_P(PSTR(" + Protocol: 0x%04x\r\n"), SwapEndian_16(FrameHeader->EtherType));
#endif
}