Assume CURVES are always defined

This commit is contained in:
Arne Schwabe
2018-07-05 12:05:55 +02:00
parent e76d1d0c3d
commit cbf60380f2
12 changed files with 0 additions and 41 deletions
-2
View File
@@ -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);