From 0a5cf0795605d622cb59cac4cbda6de5ad2dc3e5 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sat, 23 May 2020 22:11:09 -0400 Subject: [PATCH] funny that THIS would happen --- firmware/util/math/interpolation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/firmware/util/math/interpolation.cpp b/firmware/util/math/interpolation.cpp index 6321317f7b..cb0f95fc48 100644 --- a/firmware/util/math/interpolation.cpp +++ b/firmware/util/math/interpolation.cpp @@ -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);