Skip to content

Conversation

tannewt
Copy link
Member

@tannewt tannewt commented Mar 13, 2018

Having the active_read = false in the background function left
a chance that a new_write occurs before active_read is set to false.

In that case, we'll read the appropriate data rather than write it
and never clear the active write.

Hopefully fixes #655.

Having the `active_read = false` in the background function left
a chance that a new_write occurs before active_read is set to false.

In that case, we'll read the appropriate data rather than write it
and never clear the active write.

Hopefully fixes micropython#655.
@tannewt tannewt added this to the 3.0 Alpha milestone Mar 13, 2018
@tannewt tannewt requested a review from dhalbert March 13, 2018 18:36
Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

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

OK! Maybe also not in a critical section in the original place was an issue (or maybe that's the point of your fix).

@dhalbert dhalbert merged commit b64d568 into adafruit:master Mar 13, 2018
@jerryneedell
Copy link
Collaborator

jerryneedell commented Mar 13, 2018

This PR causes my itsybitys_m0_express to now fail again as per #655 . It was working before this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FS does not mount with CP3.0 on itsybitsy_m0_express
3 participants