Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of webserverBlinky by
Diff: main.cpp
- Revision:
- 58:8f39f28f9b14
- Parent:
- 57:8deab70fef2e
- Child:
- 60:2b770949c911
- Child:
- 61:b3c1a04efd0a
diff -r 8deab70fef2e -r 8f39f28f9b14 main.cpp --- a/main.cpp Tue Jan 31 13:41:00 2017 +0000 +++ b/main.cpp Mon Apr 24 05:16:10 2017 +0000 @@ -539,9 +539,7 @@ int flagsOut = TCP_FLAG_ACK; // the default case is an ACK packet int fastResponse = 0; // normally you wait 200ms before sending a packet but this can make it faster - if (ppp.seq != ack) { - ppp.seq = ack; // if their sequence number is different than our calculation we adopt their version - } + ppp.seq = ack; // adopt their sequence number calculation in place of doing our own calculation if ( ((flagsTCP & ~TCP_FLAG_ACK) == 0) && ((flagsTCP & TCP_FLAG_ACK) != 0) ) { if (incomingLen == 0) { // ignore - just an empty ack packet