From b8eafd76524a70a8478ed42ec9cea86b480538de Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sat, 22 Jan 2022 22:17:38 -0500 Subject: [PATCH] docs --- firmware/util/math/interpolation.h | 2 ++ 1 file changed, 2 insertions(+) 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++) {