diff --git a/firmware/util/math/interpolation.h b/firmware/util/math/interpolation.h index 42586f6aad..cc0f5f191c 100644 --- a/firmware/util/math/interpolation.h +++ b/firmware/util/math/interpolation.h @@ -24,6 +24,8 @@ int findIndex2(const float array[], unsigned size, float value); float interpolateClamped(float x1, float y1, float x2, float y2, float x); float interpolateMsg(const char *msg, float x1, float y1, float x2, float y2, float x); +// _technically_ and _theoretically_ we can support flat line for both bins and values but I am not sure if +// such a rare case is something we want to support template void ensureArrayIsAscending(const char* msg, const TValue (&values)[TSize]) { for (size_t i = 0; i < TSize - 1; i++) {