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:
- 126:4e1058fa2128
- Parent:
- 125:ea88200b1df6
- Child:
- 127:3ea6f776e287
--- a/main.cpp Wed Aug 09 12:56:59 2017 +0000 +++ b/main.cpp Wed Aug 09 13:11:55 2017 +0000 @@ -37,7 +37,7 @@ // The #define below enables/disables a second (OPTIONAL) serial port that prints out interesting diagnostic messages. // Change to SERIAL_PORT_MONITOR_YES to enable diagnostics messages. You need to wire a second serial port to your mbed hardware to monitor this. // Note - the LPC11U24 does NOT have a second serial port -#define SERIAL_PORT_MONITOR_NO /* change to SERIAL_PORT_MONITOR_YES for debug messages */ +#define SERIAL_PORT_MONITOR_YES /* change to SERIAL_PORT_MONITOR_YES for debug messages */ // here we define the OPTIONAL, second debug serial port for the various target boards // insert your target board's port here if it's not in yet - if it works, please send it to me - thanks!!! @@ -110,7 +110,7 @@ int httpPageCount; int firstFrame; // cleared after first frame struct { -#define RXBUFLEN (1<<15) +#define RXBUFLEN (1<<11) // the serial port receive buffer and packet buffer, size is RXBUFLEN (currently 2048 bytes) char buf[RXBUFLEN]; // RXBUFLEN MUST be a power of two because we use & operator for fast wrap-around in ring buffer int head;