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

Overflow on OverrideCHxx functions on ARM boards (range is now

-150:+150)
This commit is contained in:
bsongis 2014-09-15 14:12:02 +02:00
parent 93d2837dee
commit 99e87050f3
3 changed files with 13 additions and 4 deletions

View file

@ -252,8 +252,10 @@ int16_t applyLimits(uint8_t channel, int32_t value)
if (lim->revert) ofs = -ofs; // finally do the reverse.
#if defined(OVERRIDE_CHANNEL_FUNCTION)
if (safetyCh[channel] != -128) // if safety channel available for channel check
if (safetyCh[channel] != OVERRIDE_CHANNEL_UNDEFINED) {
// safety channel available for channel check
ofs = calc100toRESX(safetyCh[channel]);
}
#endif
return ofs;