funny that THIS would happen

This commit is contained in:
rusefi 2020-05-23 22:11:09 -04:00
parent 39671f3c33
commit 0a5cf07956
1 changed files with 2 additions and 1 deletions

View File

@ -200,7 +200,8 @@ namespace priv
*/
float interpolate2d(const char *msg, float value, const float bin[], const float values[], int size) {
if (isnan(value)) {
firmwareError(CUSTOM_INTERPOLATE_NAN, "NaN in interpolate2d %s", msg);
// this unfortunately sometimes happens during functional tests on real hardware
warning(CUSTOM_INTERPOLATE_NAN, "NaN in interpolate2d %s", msg);
return NAN;
}
int index = findIndexMsg(msg, bin, size, value);