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:
parent
f046de3f93
commit
42f6e9e4e4
@ -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{{{
|
||||
|
Loading…
Reference in New Issue
Block a user