1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-25 01:05:10 +03:00
This commit is contained in:
bsongis 2014-06-21 21:33:48 +02:00
parent 319b3006f3
commit e5e378b1b0

View file

@ -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--;