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){
|
bool runCompressor(int timer, int refreshInterval){
|
||||||
if(timer%refreshInterval==0&compressing&comressor.GetPressureSwitchValue()==1){
|
if(timer%refreshInterval==0&compressing&comressor.GetPressureSwitchValue()==1){
|
||||||
compressing=false;
|
compressing=false;
|
||||||
return false;
|
compressor.Stop();
|
||||||
}
|
}
|
||||||
if(timer%refreshInterval==0&!compressing&comressor.GetPressureSwitchValue()==0){
|
if(timer%refreshInterval==0&!compressing&comressor.GetPressureSwitchValue()==0){
|
||||||
compressing=true;
|
compressing=true;
|
||||||
return true;
|
compressor.Start();
|
||||||
}
|
}
|
||||||
//}}}
|
//}}}
|
||||||
//Autonomous{{{
|
//Autonomous{{{
|
||||||
|
Loading…
Reference in New Issue
Block a user