You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
0 commit comments