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

Failed to advance buffer ptrs in usb_cdc.Serial properly #4922

Merged
merged 1 commit into from
Jun 25, 2021

Conversation

dhalbert
Copy link
Collaborator

@dhalbert dhalbert commented Jun 25, 2021

Fixes #4921.

The usb_cdc.Serial read and write routines did not advance the buffer pointer after the first read or write, causing data to be read into the wrong part of the buffer, or duplicate data to be written.

Tested with a Pi Pico and pyserial. Original reporter @acrankyturtle will also test.

@dhalbert dhalbert requested review from tannewt and jepler June 25, 2021 13:53
@dhalbert
Copy link
Collaborator Author

@acrankyturtle reports this fixes their problem.

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix!

@tannewt tannewt merged commit 6900513 into adafruit:main Jun 25, 2021
@dhalbert dhalbert deleted the usb-cdc-buffers branch June 25, 2021 23:28
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.

Serial not reading correctly
2 participants