From e51337abf2c43be63f027dfc5f9ef8a3e84a1416 Mon Sep 17 00:00:00 2001 From: Oleksiy Date: Tue, 22 Aug 2023 01:16:42 +0300 Subject: [PATCH] Longer encoder press exits param edit without exiting the tab --- Software/Gravity/Interactions.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Software/Gravity/Interactions.ino b/Software/Gravity/Interactions.ino index 8ae10c6..3e5b48c 100644 --- a/Software/Gravity/Interactions.ino +++ b/Software/Gravity/Interactions.ino @@ -67,6 +67,8 @@ void checkInputs() { } else if (encReleasedTime - encPressedTime < 2000) { // longer press (<2s) is for navigating back. longer than 2s presses are ignored if (displayScreen != 0) { displayScreen = 0; + } else if (menuItemSelected == 1) { + menuItemSelected = 0; } else if (insideTab == 1) { insideTab = 0; menuItem = 0;