Avoid recursive calls to getTrimValue
This commit is contained in:
@@ -1666,10 +1666,9 @@ int getTrimValue(uint8_t phase, uint8_t idx)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
phase = p;
|
phase = p;
|
||||||
if (v.mode % 2 == 0)
|
if (v.mode % 2 != 0) {
|
||||||
result = 0;
|
|
||||||
else
|
|
||||||
result += v.value;
|
result += v.value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user