From 3162d9cc56176c4a7560d49504f4a89f12a84dbc Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sat, 16 Oct 2021 19:03:36 -0400 Subject: [PATCH] let's see if CI would fail, i.e. let's see if this logic was covered --- firmware/controllers/actuators/ac_control.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/controllers/actuators/ac_control.cpp b/firmware/controllers/actuators/ac_control.cpp index 8139801b1d..687779ea43 100644 --- a/firmware/controllers/actuators/ac_control.cpp +++ b/firmware/controllers/actuators/ac_control.cpp @@ -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; }