let's see if CI would fail, i.e. let's see if this logic was covered

This commit is contained in:
rusefillc 2021-10-16 19:03:36 -04:00
parent 01b5ee50a7
commit 3162d9cc56
1 changed files with 2 additions and 2 deletions

View File

@ -34,14 +34,14 @@ bool AcState::getAcState(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
// Engine too hot, disable
auto maxClt = CONFIG(maxAcClt);
engineTooHot = (maxClt != 0) && maxCltDeadband.gt(maxClt, clt.Value);
engineTooHot = (maxClt != 0) && maxCltDeadband.gt(clt.Value, maxClt);
if (engineTooHot) {
return false;
}
// TPS too high, disable
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) {
return false;
}