Fix and update firmware download #38
Open
cl445 wants to merge 2 commits into
Open
Conversation
…and file validation Details: - Download firmware from master branch: Retrieve firmware files directly from the master branch on GitHub for consistency and updates. - Implement robust error handling: Catch potential exceptions during download, extraction, and file operations to prevent unexpected failures and provide informative error messages. - Integrate logging: Use the Log facade to track progress, status, and potential errors for easier debugging and monitoring. - Add file validation: Verify the downloaded file size and content to ensure integrity and prevent issues with empty or invalid files. - Extract specific subfolders: Extract only firmware files within latest and feature-specific subfolders for targeted updates. - Improve code readability: Enhance code clarity with better variable naming, comments, and formatting for easier maintenance.
…and file validation Details: - Download firmware from master branch: Retrieve firmware files directly from the master branch on GitHub for consistency and updates. - Implement robust error handling: Catch potential exceptions during download, extraction, and file operations to prevent unexpected failures and provide informative error messages. - Integrate logging: Use the Log facade to track progress, status, and potential errors for easier debugging and monitoring. - Add file validation: Verify the downloaded file size and content to ensure integrity and prevent issues with empty or invalid files. - Extract specific subfolders: Extract only firmware files within latest and feature-specific subfolders for targeted updates. - Improve code readability: Enhance code clarity with better variable naming, comments, and formatting for easier maintenance.
|
Thanks for this! For me there were two things I had to do to get your PR working:
|
Author
|
My PR is now open for more than 2 years. I am glad that it was actualy usefull for someone. Thanks! 🙂 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix and update firmware download process with error handling, logging, and file validation
Details: