Skip to content

Sync - #1

Merged
thesynman merged 6 commits into
thesynman:masterfrom
pybricks:master
Apr 10, 2021
Merged

thesynman merged 6 commits into
thesynman:masterfrom
pybricks:master

Conversation

@thesynman

Copy link
Copy Markdown
Owner

No description provided.

dlech added 6 commits April 9, 2021 13:57
Since the progress indicators shows percent complete, we should do this *after* it is actually complete.
This fixes a race condition where the nus_handler() could be called
multiple times before returning to send_block() when it is waiting for
the checksum_ready event.

By setting self.expected_checksum = -1 in the nus_handler() callback
itself, we prevent the next call from assuming that the data is also
a checksum.

Issue: #16
@thesynman
thesynman merged commit e5a9601 into thesynman:master Apr 10, 2021
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.

2 participants