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:
- 140:f526e9ecfebb
- Parent:
- 139:1f87c6bc8db3
- Child:
- 141:4cc1518ee06f
diff -r 1f87c6bc8db3 -r f526e9ecfebb main.cpp --- a/main.cpp Sun Aug 20 19:54:45 2017 +0000 +++ b/main.cpp Wed Aug 23 21:54:47 2017 +0000 @@ -210,8 +210,9 @@ void led1Toggle() { - ppp.ledState = ppp.ledState? 0 : 1; - led1 = ppp.ledState; // toggle led + led1 = (ppp.ledState >> 1) & 1; // use second bit, in other words toggle LED only every second packet + ppp.ledState++; + } // fill our own receive buffer with characters from the PPP serial port