From fd652c8a40bdcdc11d2c56b01d8c2954b7c27834 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 13 Jan 2019 01:25:53 -0500 Subject: [PATCH] refactoring: calling out 'const' things --- firmware/controllers/core/interpolation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/controllers/core/interpolation.h b/firmware/controllers/core/interpolation.h index e9aee6ff44..c09e334e62 100644 --- a/firmware/controllers/core/interpolation.h +++ b/firmware/controllers/core/interpolation.h @@ -34,7 +34,7 @@ int needInterpolationLogging(void); * @brief Two-dimensional table lookup with linear interpolation */ template -float interpolate3d(float x, float xBin[], int xBinSize, float y, float yBin[], int yBinSize, vType* map[]) { +float interpolate3d(float x, const float xBin[], int xBinSize, float y, const float yBin[], int yBinSize, vType* map[]) { if (cisnan(x)) { warning(CUSTOM_INTEPOLATE_ERROR_3, "%.2f: x is NaN in interpolate3d", x); return NAN;