mirror of https://github.com/rusefi/rusefi-1.git
funny that THIS would happen
This commit is contained in:
parent
39671f3c33
commit
0a5cf07956
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue