better error handling

This commit is contained in:
rusEfi 2018-01-01 12:56:27 -05:00
parent 1c08f2ea8a
commit f4c1da89fa
1 changed files with 4 additions and 0 deletions

View File

@ -93,6 +93,10 @@ void updateAuxValves(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
}
float x = getTPS(PASS_ENGINE_PARAMETER_SIGNATURE);
if (cisnan(x)) {
// error should be already reported by now
return;
}
engine->engineState.auxValveStart = interpolate2d("aux", x,
engineConfiguration->fsioCurve1Bins,
engineConfiguration->fsioCurve1, FSIO_CURVE_16);