mirror of https://github.com/rusefi/rusefi.git
only:Disable fans after VSS > x #5875
This commit is contained in:
parent
206e2b6916
commit
ea8c338f18
|
@ -14,6 +14,7 @@ protected:
|
|||
virtual float getFanOffTemp() = 0;
|
||||
virtual bool enableWithAc() = 0;
|
||||
virtual bool disableWhenStopped() = 0;
|
||||
virtual int disableAtSpeed() = 0;
|
||||
};
|
||||
|
||||
struct FanControl1 : public FanController {
|
||||
|
@ -36,6 +37,10 @@ struct FanControl1 : public FanController {
|
|||
bool disableWhenStopped() {
|
||||
return engineConfiguration->disableFan1WhenStopped;
|
||||
}
|
||||
|
||||
int disableAtSpeed() {
|
||||
return engineConfiguration->disableFan1AtSpeed;
|
||||
}
|
||||
};
|
||||
|
||||
struct FanControl2 : public FanController {
|
||||
|
@ -58,4 +63,8 @@ struct FanControl2 : public FanController {
|
|||
bool disableWhenStopped() {
|
||||
return engineConfiguration->disableFan2WhenStopped;
|
||||
}
|
||||
|
||||
int disableAtSpeed() {
|
||||
return engineConfiguration->disableFan2AtSpeed;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -6,4 +6,5 @@ struct_no_prefix fan_control_s
|
|||
bit enabledForAc
|
||||
bit hot
|
||||
bit cold
|
||||
bit disabledBySpeed
|
||||
end_struct
|
||||
|
|
Loading…
Reference in New Issue