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
Revision 112:30172f36bd33, committed 2017-08-04
- Comitter:
- nixnax
- Date:
- Fri Aug 04 21:26:19 2017 +0000
- Parent:
- 111:6a3b77c065c0
- Child:
- 113:d9666fe4d0ed
- Commit message:
- Removed unneeded led toggles.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Aug 04 20:59:40 2017 +0000 +++ b/main.cpp Fri Aug 04 21:26:19 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!!! @@ -59,7 +59,7 @@ #endif // verbosity flags used in debug printouts - change to 1 to see increasingly more detailed debug info. -#define v0 0 +#define v0 1 #define v1 0 #define v2 0 @@ -967,7 +967,6 @@ char * found1 = strstr( (char *)ppp.rx.buf, "CLIENT" ); if (found1 != NULL) { // respond with Windows Dialup networking expected "Direct Connection Between Two Computers" response string - led1Toggle(); if (v0) debug("Found connect string \"CLIENT\", sent \"CLIENTSERVER\"\n"); pc.puts("CLIENTSERVER"); ppp.online=1; // we are connected, so we can stop looking for the connect string @@ -989,6 +988,7 @@ xx.baud(115200); // second serial port for debug messages xx.puts("\x1b[2J\x1b[HReady\n"); // VT100 code for clear screen & home #endif +while(1){}; pppInitStruct(); // initialize all the PPP properties while(1) { scanForConnectString(); // respond to connect command from windows dial up networking