diff --git a/firmware/util/math/efi_interpolation.h b/firmware/util/math/efi_interpolation.h index d0a0388496..309e47f54c 100644 --- a/firmware/util/math/efi_interpolation.h +++ b/firmware/util/math/efi_interpolation.h @@ -56,7 +56,7 @@ void ensureArrayIsAscendingOrDefault(const char* msg, const TValue (&values)[TSi * See also ensureArrayIsAscending */ template -int findIndexMsgExt(const char *msg, const kType array[], int size, kType value) { +int findIndexMsg(const char *msg, const kType array[], int size, kType value) { float fvalue = (float)value; if (cisnan(fvalue)) { firmwareError(ObdCode::ERROR_NAN_FIND_INDEX, "NaN in findIndex%s", msg); @@ -109,8 +109,6 @@ int findIndexMsgExt(const char *msg, const kType array[], int size, kType value) return middle; } -#define findIndexMsg(msg, array, size, value) findIndexMsgExt(msg, array, size, value) - /** * Sets specified value for specified key in a correction curve * see also setLinearCurve()