From bdcbe3804b1cdbd84892344256ff9f339fafa03a Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Sat, 6 Aug 2022 04:24:53 -0700 Subject: [PATCH] ignore invalid diag result when checking ign/inj (#4419) * ignore invalid pins * ign too --- firmware/controllers/sensors/sensor_checker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/controllers/sensors/sensor_checker.cpp b/firmware/controllers/sensors/sensor_checker.cpp index b32ac0df9c..5da6db395e 100644 --- a/firmware/controllers/sensors/sensor_checker.cpp +++ b/firmware/controllers/sensors/sensor_checker.cpp @@ -181,7 +181,7 @@ void SensorChecker::onSlowCallback() { } auto diag = pin.getDiag(); - if (diag != PIN_OK) { + if (diag != PIN_OK && diag != PIN_INVALID) { auto code = getCodeForInjector(i + 1, diag); char description[32]; @@ -200,7 +200,7 @@ void SensorChecker::onSlowCallback() { } auto diag = pin.getDiag(); - if (diag != PIN_OK) { + if (diag != PIN_OK && diag != PIN_INVALID) { auto code = getCodeForIgnition(i + 1, diag); char description[32];