Skip to content

Fix boot_out.txt contents check #5535

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

Closed
wants to merge 1 commit into from

Conversation

dhalbert
Copy link
Collaborator

@dhalbert dhalbert commented Nov 1, 2021

boot_out.txt was getting rewritten every time, because the contents check did not include checking for the new Board ID: info.

I checked to see whether a longer concatenated string or two string comparisons was smaller in terms of firmware space. The latter was better.

I also reduced the time spent waiting for stable power from 1.5 seconds to 1 second.

Note that the existence of a boot.py will cause boot_out.txt to be written every time, since we don't know what will get written. It could get buffered instead, and then compared, to save flash writes, but that's more complicated.

Anybody can review.

@dhalbert dhalbert requested review from tannewt and jepler November 1, 2021 22:10
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Did you intend to include async changes here?

@dhalbert dhalbert requested a review from tannewt November 2, 2021 01:20
@dhalbert
Copy link
Collaborator Author

dhalbert commented Nov 2, 2021

Force-pushed correct changes.

@tannewt
Copy link
Member

tannewt commented Nov 2, 2021

This PR will likely be closed in favor of #5536

@dhalbert dhalbert closed this Nov 3, 2021
@dhalbert dhalbert deleted the fix-boot_out-check branch November 3, 2021 01:55
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.

Code gets wiped when power-cycling between 2.8 and 3.0 seconds
2 participants