Motorola SREC and Intel HEX file extraction support#544
Open
KendallHarterAtWork wants to merge 10 commits intomainfrom
Open
Motorola SREC and Intel HEX file extraction support#544KendallHarterAtWork wants to merge 10 commits intomainfrom
KendallHarterAtWork wants to merge 10 commits intomainfrom
Conversation
🆕 New Folders (1)
🧪 SBOM Results (2/17)
|
WorkingRobot
requested changes
Dec 16, 2025
Member
WorkingRobot
left a comment
There was a problem hiding this comment.
LGTM except for a few spots. I wonder if we should refactor this and the file decompression to compartmentalize the cache handling system?
Comment on lines
+485
to
+499
| default_value = False | ||
| else: | ||
| # Have to convert from string to Boolean | ||
| default_value = default_value.lower() == "true" | ||
| self.value = self.__config_manager.get(self.plugin_name, self.info.name, default_value) | ||
| self.value = str( | ||
| self.__config_manager.get(self.plugin_name, self.info.name, default_value) | ||
| ) | ||
| elif self.info.type_ == "int": | ||
| self.input_field = textual.widgets.Input(type="integer") | ||
| default_value = self.info.default | ||
| if default_value is None: | ||
| default_value = 0 | ||
| self.value = str( | ||
| self.__config_manager.get(self.plugin_name, self.info.name, int(default_value)) | ||
| ) |
Member
There was a problem hiding this comment.
Should this TUI code be in a separate PR?
Collaborator
Author
There was a problem hiding this comment.
I think it's fine here? If we try to move it into a separate PR we run into the issue that we'd also need to exclude the integer type from the srec/hex documentation. It's also a pretty small change.
|
|
||
| def get_first_and_last_address(data: List[WriteInfo]) -> Tuple[int, int]: | ||
| # Arbitrarly large number so smaller addresses will always compare true | ||
| first_address = 2 << 65 |
Member
There was a problem hiding this comment.
Probably fine? Feels wrong to have a magic number here.
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.
Summary
If merged this pull request will add support for extracting files from Motorola SREC and Intel HEX files into a user-specified directory. This address #257.