better error handling
This commit is contained in:
parent
52ee60036a
commit
01a23b0b52
|
@ -207,7 +207,8 @@ static msg_t ivThread(int param) {
|
||||||
finishIdleTestIfNeeded();
|
finishIdleTestIfNeeded();
|
||||||
undoIdleBlipIfNeeded();
|
undoIdleBlipIfNeeded();
|
||||||
|
|
||||||
float cltCorrection = interpolate2d("cltT", engine->sensors.clt, config->cltIdleCorrBins, config->cltIdleCorr,
|
float clt = engine->sensors.clt;
|
||||||
|
float cltCorrection = cisnan(clt) ? 1 : interpolate2d("cltT", clt, config->cltIdleCorrBins, config->cltIdleCorr,
|
||||||
CLT_CURVE_SIZE) / PERCENT_MULT;
|
CLT_CURVE_SIZE) / PERCENT_MULT;
|
||||||
|
|
||||||
float iacPosition;
|
float iacPosition;
|
||||||
|
|
Loading…
Reference in New Issue