Assume CURVES are always defined
This commit is contained in:
@@ -244,7 +244,6 @@ int16_t applyLimits(uint8_t channel, int32_t value)
|
||||
{
|
||||
LimitData * lim = limitAddress(channel);
|
||||
|
||||
#if defined(CPUARM) && defined(CURVES)
|
||||
if (lim->curve) {
|
||||
// TODO we loose precision here, applyCustomCurve could work with int32_t on ARM boards...
|
||||
if (lim->curve > 0)
|
||||
@@ -252,7 +251,6 @@ int16_t applyLimits(uint8_t channel, int32_t value)
|
||||
else
|
||||
value = 256 * applyCustomCurve(-value/256, -lim->curve-1);
|
||||
}
|
||||
#endif
|
||||
|
||||
int16_t ofs = LIMIT_OFS_RESX(lim);
|
||||
int16_t lim_p = LIMIT_MAX_RESX(lim);
|
||||
|
||||
Reference in New Issue
Block a user