1
0
forked from me/IronOS

Fix button presses between short and long being ignored entirely

This commit is contained in:
nyanpasu64
2022-07-24 15:34:39 -07:00
parent c855f4cffe
commit 06e3ca59ea

View File

@@ -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