diff --git a/MyRobot.cpp b/MyRobot.cpp index 41a9376..d7d985f 100644 --- a/MyRobot.cpp +++ b/MyRobot.cpp @@ -252,11 +252,11 @@ public: bool runCompressor(int timer, int refreshInterval){ if(timer%refreshInterval==0&compressing&comressor.GetPressureSwitchValue()==1){ compressing=false; - return false; + compressor.Stop(); } if(timer%refreshInterval==0&!compressing&comressor.GetPressureSwitchValue()==0){ compressing=true; - return true; + compressor.Start(); } //}}} //Autonomous{{{