only:Disable fans after VSS > x #5875

This commit is contained in:
Andrey 2024-01-23 10:51:50 -05:00
parent 206e2b6916
commit ea8c338f18
2 changed files with 10 additions and 0 deletions

View File

@ -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;
}
};

View File

@ -6,4 +6,5 @@ struct_no_prefix fan_control_s
bit enabledForAc
bit hot
bit cold
bit disabledBySpeed
end_struct