-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
OTBR: Abort firmware flasher if network device is selected. #3719
Conversation
WalkthroughWalkthroughThe update from version 2.9.0 to 2.9.1 of the OpenThread Border Router introduces improved safety measures in the firmware flashing process. Now, the firmware flasher will abort if a network device is selected, preventing accidental flashing during active use. This change enhances operational integrity, particularly in scenarios involving network devices, while maintaining the functionality introduced in the previous version. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant FlasherScript
participant NetworkDevice
User->>FlasherScript: Initiate firmware flashing
FlasherScript->>FlasherScript: Check for network_device
alt Network device selected
FlasherScript->>User: Log message and exit
else No network device
FlasherScript->>FlasherScript: Proceed with firmware flashing
end
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
This is a bit of a corner case, as it would require a supported device connected and it also be selected in the otbr addon (but of course it has happened!)
If network device is selected, then we shouldn't run the flasher against that USB device. The
device
setting should be ignored ifnetwork device
is set.Summary by CodeRabbit
New Features
Version Update