From 5653ed54eb14c0efcf4f53e54f22bf03ee5ff2cf Mon Sep 17 00:00:00 2001 From: Adam Long Date: Wed, 2 Apr 2014 17:00:46 -0700 Subject: [PATCH] fixed another missed brace --- MyRobot.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MyRobot.cpp b/MyRobot.cpp index e4a4e9a..b8d23cc 100644 --- a/MyRobot.cpp +++ b/MyRobot.cpp @@ -253,14 +253,15 @@ public: //}}} //runCompressor{{{ void runCompressor(int timer, int refreshInterval){ - if(timer%refreshInterval==0&compressing&comressor.GetPressureSwitchValue()==1){ + if(timer%refreshInterval==0&compressing&compressor.GetPressureSwitchValue()==1){ compressing=false; compressor.Stop(); } - if(timer%refreshInterval==0&!compressing&comressor.GetPressureSwitchValue()==0){ + if(timer%refreshInterval==0&!compressing&compressor.GetPressureSwitchValue()==0){ compressing=true; compressor.Start(); } + } //}}} //Autonomous{{{ void Autonomous(){