mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-16 14:57:41 +00:00
Fix rotary encoder long press (#9039)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user