ignore invalid diag result when checking ign/inj (#4419)

* ignore invalid pins

* ign too
This commit is contained in:
Matthew Kennedy 2022-08-06 04:24:53 -07:00 committed by GitHub
parent bcdde272de
commit 770f0c6637
1 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ void SensorChecker::onSlowCallback() {
} }
auto diag = pin.getDiag(); auto diag = pin.getDiag();
if (diag != PIN_OK) { if (diag != PIN_OK && diag != PIN_INVALID) {
auto code = getCodeForInjector(i + 1, diag); auto code = getCodeForInjector(i + 1, diag);
char description[32]; char description[32];
@ -200,7 +200,7 @@ void SensorChecker::onSlowCallback() {
} }
auto diag = pin.getDiag(); auto diag = pin.getDiag();
if (diag != PIN_OK) { if (diag != PIN_OK && diag != PIN_INVALID) {
auto code = getCodeForIgnition(i + 1, diag); auto code = getCodeForIgnition(i + 1, diag);
char description[32]; char description[32];