better error handling
This commit is contained in:
parent
1c08f2ea8a
commit
f4c1da89fa
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue