Sooner Competitive Robotics / Mbed 2 deprecated IEEE_14_Freescale

Dependencies:   mbed

Fork of IEEE_14_Freescale by IEEE 2014 Mbed

Revision:
34:4ad11cda1eca
Parent:
32:ff71f61bb9f6
Child:
35:6ef5fbc45672
--- a/robot.cpp	Sun Mar 23 02:23:29 2014 +0000
+++ b/robot.cpp	Sun Mar 23 08:24:07 2014 +0000
@@ -469,10 +469,10 @@
     if(responseData[3]==1 && gotAck){
         flameLocation = responseData[2];
         DBGPRINT("Found fire at %d in %d\n\r",flameLocation,stepTimer.read_ms());
-        return 1;
+        return flameLocation;
     } else {
         DBGPRINT("Did not pass hash check %d %d %d\n\r",responseData[3],gotAck,stepTimer.read_ms());
-        return 0;
+        return -1;
     }
 }
 int robot::pollForRigs(){
@@ -481,7 +481,7 @@
     int found=0;
     for(int i=0;i<5;i++){
         found=rigCheck();
-        if(found)
+        if(found!=-1)
             break;
     }
     switchCameraMode(0);