This commit is contained in:
rusEfi 2017-12-03 18:18:50 -05:00
parent 414f45ede2
commit a62c7e2050
1 changed files with 1 additions and 0 deletions

View File

@ -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]);
}
}