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:
- 105:45001195b325
- Parent:
- 104:b1280b084f75
- Child:
- 106:d14e6b597ca3
--- 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