Skip to content

Fix possible issue on serial ports #71

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 1 commit into from
Aug 3, 2017
Merged

Conversation

cparata
Copy link
Contributor

@cparata cparata commented Aug 3, 2017

In my opinion, there is a potential bug when a character equal to -1 is sent by serial port; in this case according the current implementation the following character in the queue is not transmitted. For this reason I propose to simplify _tx_complete_irq implementation just returning 0 if we still have characters to be transmitted, -1 otherwise.

@fpistm fpistm merged commit 078f1f5 into stm32duino:master Aug 3, 2017
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