M Seiser / Mbed 2 deprecated COUNT_LINES

Dependencies:   mbed ur_Bertl

Fork of COUNT_LINES by M Seiser

Files at this revision

API Documentation at this revision

Comitter:
mSeiser
Date:
Fri May 08 09:18:18 2015 +0000
Parent:
2:5b6a054163fc
Commit message:
Update :while statt if;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri May 08 07:50:55 2015 +0000
+++ b/main.cpp	Fri May 08 09:18:18 2015 +0000
@@ -28,7 +28,7 @@
     
     while(karel.FrontIsClear())
     {
-        if(karel.NextToABeeper())
+        while(karel.NextToABeeper())
         {
             countBeeper++;
             karel.LedBeeper();