projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make XPLAINBridge serial bridge much more reliable for the reception of characters...
[pub/USBasp.git]
/
Demos
/
Device
/
LowLevel
/
RNDISEthernet
/
Lib
/
TCP.c
diff --git
a/Demos/Device/LowLevel/RNDISEthernet/Lib/TCP.c
b/Demos/Device/LowLevel/RNDISEthernet/Lib/TCP.c
index
8ec8fca
..
7603149
100644
(file)
--- a/
Demos/Device/LowLevel/RNDISEthernet/Lib/TCP.c
+++ b/
Demos/Device/LowLevel/RNDISEthernet/Lib/TCP.c
@@
-605,7
+605,7
@@
static uint16_t TCP_Checksum16(void* TCPHeaderOutStart, IP_Address_t SourceAddre
Checksum += SwapEndian_16(PROTOCOL_TCP);
Checksum += SwapEndian_16(TCPOutSize);
Checksum += SwapEndian_16(PROTOCOL_TCP);
Checksum += SwapEndian_16(TCPOutSize);
- for (uint
8
_t CurrWord = 0; CurrWord < (TCPOutSize >> 1); CurrWord++)
+ for (uint
16
_t CurrWord = 0; CurrWord < (TCPOutSize >> 1); CurrWord++)
Checksum += ((uint16_t*)TCPHeaderOutStart)[CurrWord];
if (TCPOutSize & 0x01)
Checksum += ((uint16_t*)TCPHeaderOutStart)[CurrWord];
if (TCPOutSize & 0x01)