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

Fix writing sector 0 as the first write. #3262

Merged
merged 2 commits into from
Aug 12, 2020

Conversation

tannewt
Copy link
Member

@tannewt tannewt commented Aug 11, 2020

This was the FS issue I saw when debugging wifi and only happens
when the first write is to sector 0. It causes issues because it
blanks all of sector 0 after the first block.

Fixes #3133

This was the FS issue I saw when debugging wifi and only happens
when the first write is to sector 0. It causes issues because it
blanks all of sector 0 after the first block.

Fixes micropython#3133
@tannewt tannewt added bug espressif applies to multiple Espressif chips labels Aug 11, 2020
@tannewt tannewt added this to the 6.0.0 milestone Aug 11, 2020
ladyada
ladyada previously approved these changes Aug 11, 2020
Copy link
Member

@ladyada ladyada left a comment

Choose a reason for hiding this comment

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

want to also init the variable with = 0xffffffff ?

@tannewt
Copy link
Member Author

tannewt commented Aug 11, 2020

want to also init the variable with = 0xffffffff ?

Yup, switched to that because I think it's simpler and smaller code-wise.

@tannewt tannewt requested a review from ladyada August 12, 2020 06:14
Copy link
Member

@ladyada ladyada left a comment

Choose a reason for hiding this comment

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

yay! do we also wanna maybe turn on uninited-var warning at some point?

@tannewt
Copy link
Member Author

tannewt commented Aug 12, 2020

I believe we have the warning on but it doesn't apply to static or global variables. Without an = they default to 0.

@tannewt tannewt merged commit 3197c57 into adafruit:main Aug 12, 2020
@jepler
Copy link
Member

jepler commented Aug 12, 2020

Nice catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug espressif applies to multiple Espressif chips
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ESP32-S2 saola wrover Linux Cannot access drive.
3 participants