Skip to content

feat: use config header for CRC filename size#3708

Merged
LeStarch merged 8 commits intonasa:develfrom
0xb-s:0xb-s-patch-1
Jun 18, 2025
Merged

feat: use config header for CRC filename size#3708
LeStarch merged 8 commits intonasa:develfrom
0xb-s:0xb-s-patch-1

Conversation

@0xb-s
Copy link
Contributor

@0xb-s 0xb-s commented Jun 9, 2025

Replaced hardcoded CRC_MAX_FILENAME_SIZE with value from CRCCheckerConfig.hpp.

@0xb-s 0xb-s changed the title feat: cse config header for CRC filename size feat: use config header for CRC filename size Jun 9, 2025
Copy link
Collaborator

@LeStarch LeStarch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional improvement suggestion. Otherwise this is an excellent fix!

@0xb-s 0xb-s requested a review from LeStarch June 11, 2025 17:13
LeStarch
LeStarch previously approved these changes Jun 11, 2025
Copy link
Collaborator

@LeStarch LeStarch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran CI, may need a cast but CI will tell.

@0xb-s 0xb-s requested a review from LeStarch June 11, 2025 20:53
Copy link
Collaborator

@LeStarch LeStarch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the extra definition of the size in the config, since it was removed in the code. Once CI passes, we'll merge!

Thanks!


static const FwSignedSizeType CRC_FILE_READ_BLOCK = 2048;
static const U32 CRC_MAX_FILENAME_SIZE = 128; // TODO use a config variable
static const FwSignedSizeType CRC_FILE_READ_BLOCK = CONFIG_CRC_FILE_READ_BLOCK ;

Check warning

Code scanning / CppCheck

Extra space before last semicolon. If this should be an empty statement, use {} instead. Warning

Extra space before last semicolon. If this should be an empty statement, use {} instead.
@0xb-s
Copy link
Contributor Author

0xb-s commented Jun 18, 2025

I removed the extra definition of the size in the config, since it was removed in the code. Once CI passes, we'll merge!

Thanks!

Thank you ! let me know if any additional changes are needed.

@LeStarch LeStarch merged commit f5ba060 into nasa:devel Jun 18, 2025
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants