This commit is contained in:
rusefillc 2022-01-22 22:17:38 -05:00
parent 4116c32735
commit b8eafd7652
1 changed files with 2 additions and 0 deletions

View File

@ -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<typename TValue, int TSize>
void ensureArrayIsAscending(const char* msg, const TValue (&values)[TSize]) {
for (size_t i = 0; i < TSize - 1; i++) {