mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 01:05:10 +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)
|
||||
zero = (zero*256000 - val*lim) / (1024*256-val);
|
||||
#else
|
||||
zero = (zero*256000 - 10*val*lim) / (1024*256-val);
|
||||
zero = (zero*25600 - val*lim) / (26214-val);
|
||||
#endif
|
||||
ld->offset = (ld->revert ? -zero : zero);
|
||||
resumeMixerCalculations();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue