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:
- 2:d8db9db36fb7
- Parent:
- 1:29eeaabaa8e1
- Child:
- 3:6ec54d838b44
--- a/main.cpp Fri Oct 17 15:20:32 2014 +0000 +++ b/main.cpp Fri Oct 17 15:24:58 2014 +0000 @@ -1,5 +1,5 @@ #include "mbed.h" -#include "echo_sensor.h" +#include "echo_sensor.h" // echo sensor library #define LM1_ D3 #define LM2_ D7 @@ -99,7 +99,7 @@ initEcho(); // initialize echo sensor GoForward(0); // stop all motors - while (link.readable()); // trying to fount the starting byte + while (!link.readable()); // trying to fount the starting byte while (link.getc() != 'Z'); while (true)