-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Fix firmware flasher board clearance while switching releases #4652
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
Fix firmware flasher board clearance while switching releases #4652
Conversation
WalkthroughConverted loadTargetList to async, updated call sites to await BuildApi.loadTargets, and added logic to capture and restore the previously selected board after the target list reloads, triggering a change event only when the prior selection still exists. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant U as User
participant FF as FirmwareFlasher
participant BA as BuildApi
U->>FF: Refresh board/firmware list
FF->>FF: Capture currentlySelectedBoard
FF->>BA: await loadTargets()
BA-->>FF: targets
FF->>FF: loadTargetList(targets)
alt Previously selected exists
FF->>FF: Re-select board
FF-->>U: Emit change event
else Not found
FF->>FF: Keep default selection
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2025-09-02T07:45:48.606ZApplied to files:
🔇 Additional comments (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://pr4652.betaflight-app.pages.dev |
nerdCopter
left a comment
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.
fantastic!



Summary by CodeRabbit
New Features
Bug Fixes
Improvements