Skip to content
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

Increase size of some struct fcb members #3039

Merged
merged 1 commit into from
Jul 14, 2023
Merged

Increase size of some struct fcb members #3039

merged 1 commit into from
Jul 14, 2023

Conversation

k-bharadwaj
Copy link
Contributor

Component: Flash Circular Buffer

Change the type of sector_cnt and scratch_cnt from a uint8_t to a uint16_t, allowing for counts > 255.

Component: Flash Circular Buffer

Change the type of sector_cnt and scratch_cnt from a uint8_t to
a uint16_t, allowing for counts > 255.
@kasjer kasjer requested a review from mkiiskila July 14, 2023 05:52
Copy link
Contributor

@mkiiskila mkiiskila left a comment

Choose a reason for hiding this comment

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

LGTM

@k-bharadwaj
Copy link
Contributor Author

@kasjer Really weird thing - the failure in the style check does not show up when I try to edit the file. Have you seen this before?

@kasjer
Copy link
Contributor

kasjer commented Jul 14, 2023

@k-bharadwaj no worry it's look good to me. I'll merge it in a minute. Thanks for contribution.
Out of curiosity what flash are you using that you run out of sector count for fcb?

@kasjer kasjer merged commit acdc81f into apache:master Jul 14, 2023
8 of 9 checks passed
@k-bharadwaj
Copy link
Contributor Author

@kasjer Thanks, appreciated! :)

We're using a 4MB QSPI flash with 1K sectors which was overflowing the sector_cnt failing fcb_init.

@k-bharadwaj k-bharadwaj deleted the fcb-cnt-inc branch July 14, 2023 18:10
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