Yuri T / Mbed 2 deprecated miniRobot

Dependencies:   mbed

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)