better error handling

This commit is contained in:
rusEfi 2018-01-01 12:56:27 -05:00
parent a1565058c0
commit 39ee9c92d0
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); float x = getTPS(PASS_ENGINE_PARAMETER_SIGNATURE);
if (cisnan(x)) {
// error should be already reported by now
return;
}
engine->engineState.auxValveStart = interpolate2d("aux", x, engine->engineState.auxValveStart = interpolate2d("aux", x,
engineConfiguration->fsioCurve1Bins, engineConfiguration->fsioCurve1Bins,
engineConfiguration->fsioCurve1, FSIO_CURVE_16); engineConfiguration->fsioCurve1, FSIO_CURVE_16);