Fix: no hold time on the last value when incrementing
This commit is contained in:
@@ -1149,7 +1149,7 @@ void gui_Menu(const menuitem *menu) {
|
|||||||
descriptionStart = 0;
|
descriptionStart = 0;
|
||||||
break;
|
break;
|
||||||
case BUTTON_F_LONG:
|
case BUTTON_F_LONG:
|
||||||
if ((xTaskGetTickCount() - autoRepeatTimer + autoRepeatAcceleration) > PRESS_ACCEL_INTERVAL_MAX) {
|
if (xTaskGetTickCount() + autoRepeatAcceleration > autoRepeatTimer + PRESS_ACCEL_INTERVAL_MAX) {
|
||||||
if ((lastValue = menu[currentScreen].incrementHandler()))
|
if ((lastValue = menu[currentScreen].incrementHandler()))
|
||||||
autoRepeatTimer = 1000;
|
autoRepeatTimer = 1000;
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user