1
0
forked from me/IronOS

Fix: no hold time on the last value when incrementing

This commit is contained in:
Devydd
2021-03-16 01:11:41 +01:00
parent be91f7833d
commit e831e83e27

View File

@@ -1149,7 +1149,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