move while beeper, pick up beeper

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
vhaas
Date:
Thu Apr 23 12:07:02 2015 +0000
Parent:
0:c2175b5f3742
Commit message:
BERTL_GoToBeeper

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Apr 23 12:04:19 2015 +0000
+++ b/main.cpp	Thu Apr 23 12:07:02 2015 +0000
@@ -12,7 +12,7 @@
 {
     IfBertl karel;
     
-    while(karel.NextToABeeper())
+    while(!karel.NextToABeeper())
         karel.Move();
     karel.PickBeeper();  
 }
\ No newline at end of file