-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Fix autoconnect for plugins #4674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
WalkthroughModified serial device auto-selection logic in Changes
Sequence Diagram(s)sequenceDiagram
participant UI as UI
participant SB as SerialBackend
participant Device as SerialDevice
rect #f8f9fa
note right of SB: connectionTimestamp initialized to null
end
UI->>SB: emit auto-select-serial-device
alt device already selected
SB->>UI: ignore (deviceSelected == true)
else device not selected
SB->>SB: evaluate autoSelect && (connectionTimestamp == null || connectionTimestamp > 0)
alt condition true
SB->>Device: attempt connect
Device-->>SB: connected / error
SB->>UI: notify result
else condition false
SB->>UI: skip auto-select
end
end
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
Preview URL: https://pr4674.betaflight-app-preview.pages.dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested, works as intended auto-connecting from welcome screen and after saving from CLI
|
Tested to work fine, even with auto reconnect between CLI > any tab |



Summary by CodeRabbit