Lab2_web / Mbed 2 deprecated webserverBlinky

Dependencies:   mbed

Fork of webserverBlinky by RealTimeCompLab2

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