From fad315e99d97540fbe1426ad721fcd61ad8012db Mon Sep 17 00:00:00 2001 From: brad112358 Date: Wed, 14 Jan 2026 17:59:24 -0600 Subject: [PATCH] Fix rotary encoder long press (#9039) --- src/input/RotaryEncoderInterruptBase.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/input/RotaryEncoderInterruptBase.cpp b/src/input/RotaryEncoderInterruptBase.cpp index c315f23d9..80ac08175 100644 --- a/src/input/RotaryEncoderInterruptBase.cpp +++ b/src/input/RotaryEncoderInterruptBase.cpp @@ -93,6 +93,8 @@ int32_t RotaryEncoderInterruptBase::runOnce() if (!pressDetected) { this->action = ROTARY_ACTION_NONE; + } else if (now - pressStartTime < LONG_PRESS_DURATION) { + return (20); // keep checking for long/short until time expires } return INT32_MAX;