1
0
forked from me/IronOS

Merge pull request #882 from devydd/fix_no_hold_on_last_value

Fix: no hold time on the last value when incrementing
This commit is contained in:
Ben V. Brown
2021-03-16 20:25:55 +11:00
committed by GitHub

View File

@@ -1196,7 +1196,7 @@ void gui_Menu(const menuitem *menu) {
descriptionStart = 0;
break;
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()))
autoRepeatTimer = 1000;
else