From b214f197019757cdf7779bf0397b4afcf771a332 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Mon, 28 Nov 2022 13:53:51 -0500 Subject: [PATCH] https://github.com/rusefi/rusefi/commit/6379d894fd9a8b9e0eb35f703608629d5392f5e1#r91274056 --- firmware/controllers/actuators/electronic_throttle.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/firmware/controllers/actuators/electronic_throttle.cpp b/firmware/controllers/actuators/electronic_throttle.cpp index 0ba1c4e056..f0a4009676 100644 --- a/firmware/controllers/actuators/electronic_throttle.cpp +++ b/firmware/controllers/actuators/electronic_throttle.cpp @@ -518,6 +518,7 @@ expected EtbController::getClosedLoop(percent_t target, percent_t obs etbDutyRateOfChange = m_dutyIntegrator.accumulate(prevOutput - output); prevOutput = output; + // seems good enough to simply check for both TPS sensors bool isInputError = !Sensor::get(SensorType::Tps1).Valid || isTps2Error() || isPedalError(); if (Sensor::getOrZero(SensorType::Rpm) == 0 && wasInputError != isInputError) { wasInputError = isInputError;