Skip to content

Fix Serial.flush() blocking if called immediately after Serial.begin() #144

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

Closed
wants to merge 2 commits into from

Conversation

rocketscream
Copy link

Skip checking transmission complete bit if the data register itself is empty. This will fix the bug where if Serial.flush() is called immediately after Serial.begin(), the function will never return as the transmission bit will never be set as no data was sent prior to the checking. This solve issue #140

sandeepmistry added a commit to sandeepmistry/ArduinoCore-samd that referenced this pull request May 30, 2016
@sandeepmistry
Copy link
Contributor

@rocketscream thanks! I've cherry-picked bfd2a0b.

@cmaglie cmaglie added this to the Release 1.6.7 milestone Jun 17, 2016
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.

3 participants