extra define

(cherry picked from commit 83dc73f0d4)
This commit is contained in:
Matthew Kennedy 2023-03-03 01:44:48 -08:00 committed by rusefillc
parent 94373d040d
commit 9fff7998f7
1 changed files with 1 additions and 3 deletions

View File

@ -56,7 +56,7 @@ void ensureArrayIsAscendingOrDefault(const char* msg, const TValue (&values)[TSi
* See also ensureArrayIsAscending
*/
template<typename kType>
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()