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

Forgot to make the compressor actually RUN

This commit is contained in:
Adam Long 2014-04-02 14:45:42 -07:00
parent f046de3f93
commit 42f6e9e4e4

View File

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