extra define
(cherry picked from commit 83dc73f0d44fa1bcbda4b4c97f15bec50c120863)
This commit is contained in:
parent
94373d040d
commit
9fff7998f7
|
@ -56,7 +56,7 @@ void ensureArrayIsAscendingOrDefault(const char* msg, const TValue (&values)[TSi
|
||||||
* See also ensureArrayIsAscending
|
* See also ensureArrayIsAscending
|
||||||
*/
|
*/
|
||||||
template<typename kType>
|
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;
|
float fvalue = (float)value;
|
||||||
if (cisnan(fvalue)) {
|
if (cisnan(fvalue)) {
|
||||||
firmwareError(ObdCode::ERROR_NAN_FIND_INDEX, "NaN in findIndex%s", msg);
|
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;
|
return middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define findIndexMsg(msg, array, size, value) findIndexMsgExt(msg, array, size, value)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets specified value for specified key in a correction curve
|
* Sets specified value for specified key in a correction curve
|
||||||
* see also setLinearCurve()
|
* see also setLinearCurve()
|
||||||
|
|
Loading…
Reference in New Issue