mirror of https://github.com/rusefi/rusefi-1.git
let's see if CI would fail, i.e. let's see if this logic was covered
This commit is contained in:
parent
01b5ee50a7
commit
3162d9cc56
|
@ -34,14 +34,14 @@ bool AcState::getAcState(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
|
|
||||||
// Engine too hot, disable
|
// Engine too hot, disable
|
||||||
auto maxClt = CONFIG(maxAcClt);
|
auto maxClt = CONFIG(maxAcClt);
|
||||||
engineTooHot = (maxClt != 0) && maxCltDeadband.gt(maxClt, clt.Value);
|
engineTooHot = (maxClt != 0) && maxCltDeadband.gt(clt.Value, maxClt);
|
||||||
if (engineTooHot) {
|
if (engineTooHot) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TPS too high, disable
|
// TPS too high, disable
|
||||||
auto maxTps = CONFIG(maxAcTps);
|
auto maxTps = CONFIG(maxAcTps);
|
||||||
tpsTooHigh = maxTps != 0 && maxTpsDeadband.gt(maxTps, Sensor::getOrZero(SensorType::Tps1));
|
tpsTooHigh = maxTps != 0 && maxTpsDeadband.gt(Sensor::getOrZero(SensorType::Tps1), maxTps);
|
||||||
if (tpsTooHigh) {
|
if (tpsTooHigh) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue