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

9x timer start edit fix

This commit is contained in:
Andre Bernet 2016-03-25 11:46:34 +04:00
parent 1809addbb3
commit 4b6bcc6a0e

View file

@ -285,8 +285,9 @@ void menuModelSetup(uint8_t event)
break; break;
case 2: case 2:
qr.rem -= checkIncDecModel(event, qr.rem+2, 1, 62)-2; qr.rem -= checkIncDecModel(event, qr.rem+2, 1, 62)-2;
timer->start -= qr.rem ; if (timer->start >= qr.rem) {
if ((int16_t)timer->start < 0) timer->start=0; // TODO is it really needed? timer->start -= qr.rem ;
}
if ((int32_t)timer->start > 3599) timer->start=3599; // 59:59 if ((int32_t)timer->start > 3599) timer->start=3599; // 59:59
break; break;
} }