1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 16:25:16 +03:00

Byte save when PPM_LIMITS_SYMETRICAL is not defined

This commit is contained in:
romolo.manfredini@gmail.com 2012-09-08 09:05:09 +00:00
parent 1185443850
commit 772b8318ec

View file

@ -2381,8 +2381,10 @@ inline void doMixerCalculations(tmr10ms_t tmr10ms, uint8_t tick10ms)
val = -val + calc100toRESX(g_model.limitData[ch].max + 100);
else
val = val - calc100toRESX(g_model.limitData[ch].min - 100);
#if defined(PPM_LIMITS_SYMETRICAL)
if (g_model.limitData[ch].symetrical)
val -= calc1000toRESX(g_model.limitData[ch].offset);
#endif
val = val * 10 / (10+(g_model.limitData[ch].max-g_model.limitData[ch].min)/20);
val -= RESX;
}