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:
- 28:c92912036b03
- Parent:
- 27:d392a95f4799
- Child:
- 30:231e6584afe9
--- a/main.cpp Wed May 08 02:55:40 2019 +0000 +++ b/main.cpp Wed May 08 07:48:01 2019 +0000 @@ -29,8 +29,8 @@ while(mode4.read() == 1) { int start_state = (get_dist_back()-10)/10; + if(start_state>6 || start_state<0) start_state = 0; int tmp = start_state; - if(start_state>6 || start_state<0) start_state = 0; led2 = start_state/4; start_state = start_state%4; led3 = start_state/2;