2
0
mirror of https://github.com/team2059/Zaphod synced 2024-12-18 20:12:28 -05:00

fixed another missed brace

This commit is contained in:
Adam Long 2014-04-02 17:00:46 -07:00
parent 8303b79850
commit 5653ed54eb

View File

@ -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(){