Avoid recursive calls to getTrimValue

This commit is contained in:
Bertrand Songis
2014-02-01 16:23:57 +01:00
parent 582b14e919
commit 670bb0a0c5
+2 -3
View File
@@ -1666,10 +1666,9 @@ int getTrimValue(uint8_t phase, uint8_t idx)
}
else {
phase = p;
if (v.mode % 2 == 0)
result = 0;
else
if (v.mode % 2 != 0) {
result += v.value;
}
}
}
}