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.
Diff: main.cpp
- Revision:
- 266:47eea4b910ad
- Parent:
- 201:9fcf92e9f427
--- a/main.cpp Thu Dec 12 05:13:48 2019 +0000
+++ b/main.cpp Sat Jan 18 04:29:12 2020 +0000
@@ -6,11 +6,14 @@
int main()
{
- initializePpp(); // initialize the serial port(s) and structures
+ initializePpp(); // initialize the serial port(s) and PPP structure
while(1) {
waitForPcConnectString(); // wait for PC to send a connect message
+
+ // main loop
while( connectedPpp() ) {
waitForPppFrame(); // process PPP frames until we receive a disconnect command
}
+
}
}
\ No newline at end of file