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

Corrected number of serial bytes returned #5541

Merged
merged 1 commit into from Nov 3, 2021

Conversation

DavePutz
Copy link
Collaborator

@DavePutz DavePutz commented Nov 3, 2021

Issue 5477. The calculation for number of UART bytes returned under some circumstances could result in a negative number. Since it was unsigned, this meant that a large value would be used and memory would get stepped on. The real issue seems to be that the SDK does not always update the handle.rxData field, but rather than trying to fix the SDK, code was added to UART.c to correct for the situation.

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 @DavePutz !

@tannewt tannewt merged commit 0dfb7a9 into adafruit:main Nov 3, 2021
@DavePutz DavePutz deleted the issue_5477 branch November 4, 2021 20:12
@jepler jepler mentioned this pull request Jun 28, 2023
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.

None yet

2 participants