mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 09:15:38 +03:00
Fixes #1343
This commit is contained in:
parent
319b3006f3
commit
e5e378b1b0
1 changed files with 2 additions and 2 deletions
|
@ -165,7 +165,7 @@ int16_t checkIncDec(uint8_t event, int16_t val, int16_t i_min, int16_t i_max, ui
|
||||||
#if defined(CPUARM)
|
#if defined(CPUARM)
|
||||||
do {
|
do {
|
||||||
if (IS_KEY_REPT(event) && (i_flags & INCDEC_REP10)) {
|
if (IS_KEY_REPT(event) && (i_flags & INCDEC_REP10)) {
|
||||||
newval+=10;
|
newval += min(10, i_max-val);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
newval++;
|
newval++;
|
||||||
|
@ -190,7 +190,7 @@ int16_t checkIncDec(uint8_t event, int16_t val, int16_t i_min, int16_t i_max, ui
|
||||||
#if defined(CPUARM)
|
#if defined(CPUARM)
|
||||||
do {
|
do {
|
||||||
if (IS_KEY_REPT(event) && (i_flags & INCDEC_REP10)) {
|
if (IS_KEY_REPT(event) && (i_flags & INCDEC_REP10)) {
|
||||||
newval-=10;
|
newval -= min(10, val-i_min);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
newval--;
|
newval--;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue