Fix rotary encoder long press (#9039)

This commit is contained in:
brad112358
2026-01-14 17:59:24 -06:00
committed by GitHub
parent 2d4f1b6bfe
commit fad315e99d

View File

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