mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 01:35:21 +03:00
Overflow in copySticksToOffset on 9x
This commit is contained in:
parent
cfd6d47dfb
commit
83532f84cd
1 changed files with 1 additions and 1 deletions
|
@ -3104,7 +3104,7 @@ void copySticksToOffset(uint8_t ch)
|
||||||
#if defined(CPUARM)
|
#if defined(CPUARM)
|
||||||
zero = (zero*256000 - val*lim) / (1024*256-val);
|
zero = (zero*256000 - val*lim) / (1024*256-val);
|
||||||
#else
|
#else
|
||||||
zero = (zero*256000 - 10*val*lim) / (1024*256-val);
|
zero = (zero*25600 - val*lim) / (26214-val);
|
||||||
#endif
|
#endif
|
||||||
ld->offset = (ld->revert ? -zero : zero);
|
ld->offset = (ld->revert ? -zero : zero);
|
||||||
resumeMixerCalculations();
|
resumeMixerCalculations();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue