Skip to content

RP2040 and ESP32S2: Return correct count from UART.write() #4645

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

Merged
merged 3 commits into from
Apr 23, 2021

Conversation

dhalbert
Copy link
Collaborator

UART.write() was always returning zero because it used the input len as a countdown.

This change is on 6.2.x, and we can merge or cherry-pick this to main.

@dhalbert dhalbert requested review from tannewt and microdev1 April 21, 2021 22:44
microdev1
microdev1 previously approved these changes Apr 22, 2021
Copy link
Collaborator

@microdev1 microdev1 left a comment

Choose a reason for hiding this comment

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

Thanks! @dhalbert... seems like the esp32s2 port also has this issue.

@dhalbert
Copy link
Collaborator Author

Thanks! @dhalbert... seems like the esp32s2 port also has this issue.

Thanks! I will push another commit for that.

@dhalbert dhalbert changed the title RP2040: Return correct count from UART.write() RP2040 and ESP32S2: Return correct count from UART.write() Apr 22, 2021
@dhalbert dhalbert requested a review from microdev1 April 22, 2021 13:48
@dhalbert
Copy link
Collaborator Author

Fixed and tested on esp32s2 also.

microdev1
microdev1 previously approved these changes Apr 22, 2021
@dhalbert
Copy link
Collaborator Author

@microdev1 One more review, if you have time. I just had to bump a cache key to fix the build. Thanks.

@dhalbert dhalbert merged commit 9d8545e into adafruit:6.2.x Apr 23, 2021
@dhalbert dhalbert deleted the rp2040-uart-write branch April 23, 2021 14:18
dhalbert added a commit to dhalbert/circuitpython that referenced this pull request Apr 23, 2021
dhalbert added a commit that referenced this pull request Apr 24, 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