mirror of
https://github.com/meshtastic/firmware.git
synced 2026-09-30 18:25:21 -04:00
Fix rotary encoder long press (#9039)
This commit is contained in:
1 parent
2d4f1b6bfe
commit
fad315e99d
1 file changed
+2
@@ -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