-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The flush needs to be immediately before the read, otherwise the read buffer can contain garbage that was read while sending the baud rate. Also, the ACK usually comes in < 1 ms so we don't need to wait so long. This improves the chances of not missing data if the ACK doesn't come, e.g. on the BOOST Color Distance sensor. Fixes: pybricks/support#747
- Loading branch information
Showing
2 changed files
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters