From 06e3ca59ea82826176904fde88bd48d4a33905e5 Mon Sep 17 00:00:00 2001 From: nyanpasu64 Date: Sun, 24 Jul 2022 15:34:39 -0700 Subject: [PATCH] Fix button presses between short and long being ignored entirely --- source/Core/Drivers/Buttons.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Core/Drivers/Buttons.cpp b/source/Core/Drivers/Buttons.cpp index 885a0b50..247e47f1 100644 --- a/source/Core/Drivers/Buttons.cpp +++ b/source/Core/Drivers/Buttons.cpp @@ -60,7 +60,7 @@ ButtonState getButtonState() { // User has released buttons // If they previously had the buttons down we want to check if they were < // long hold and trigger a press - if ((xTaskGetTickCount() - previousStateChange) < timeout && !longPressed) { + if (!longPressed) { // The user didn't hold the button for long // So we send button press