Lab2_web / Mbed 2 deprecated webserverBlinky

Dependencies:   mbed

Fork of webserverBlinky by RealTimeCompLab2

Files at this revision

API Documentation at this revision

Comitter:
nixnax
Date:
Mon Jul 31 15:19:16 2017 +0000
Parent:
104:b1280b084f75
Child:
106:d14e6b597ca3
Commit message:
Reduced requirements (without stack) to 6.3kB

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Jul 31 08:41:44 2017 +0000
+++ b/main.cpp	Mon Jul 31 15:19:16 2017 +0000
@@ -101,7 +101,7 @@
     int ledState; // state of LED1
     int httpPageCount;
     struct {
-#define RXBUFLEN (1<<12) 
+#define RXBUFLEN (1<<11)
         // the serial port receive buffer and packet buffer, size is RXBUFLEN (currently 8192 bytes)
         char buf[RXBUFLEN]; // RXBUFLEN MUST be a power of two because we use & operator for fast wrap-around in ring buffer
         int head;
@@ -721,7 +721,7 @@
     } // switch
 
     // The TCP flag handling is now done
-    // first we swap sourc and destination TCP addresses and insert the new ack and seq numbers
+    // first we swap source and destination TCP addresses and insert the new ack and seq numbers
 
     char tempHold[12]; // it's 12 long because we later reuse it when building the TCP pseudo-header
     memcpy(tempHold, srcAdr,4);
@@ -996,4 +996,4 @@
             wait_for_HDLC_frame();
         }
     }
-}
+}
\ No newline at end of file