This commit is contained in:
parent
414f45ede2
commit
a62c7e2050
|
@ -173,6 +173,7 @@ int findIndex2(const float array[], unsigned size, float value) {
|
|||
void ensureArrayIsAscending(const char *msg, const float array[], int size) {
|
||||
for (int i = 0; i < size - 1; i ++) {
|
||||
if (array[i] >= array[i+ 1]) {
|
||||
// todo: this should become a warning under https://github.com/rusefi/rusefi/issues/440
|
||||
firmwareError(CUSTOM_ERR_AXIS_ORDER, "invalid axis %s at %f", msg, array[i]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue