Skip to content

Serial.flush() hangs when using 2Mbps #6821

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
longapalooza opened this issue Oct 13, 2017 · 5 comments
Closed

Serial.flush() hangs when using 2Mbps #6821

longapalooza opened this issue Oct 13, 2017 · 5 comments
Labels
Architecture: AVR Applies only to the AVR microcontrollers (Uno, etc.) Component: HardwareSerial The hardware serial functionality of the core libraries

Comments

@longapalooza
Copy link

When using a buad rate of 2Mbps, Serial.flush() hangs. This issue is fully discussed and solved here at http://forum.arduino.cc/index.php?topic=504753.0. The proposed solution is to switch lines 221 and 222 shown here https://github.com/arduino/Arduino/blob/master/hardware/arduino/avr/cores/arduino/HardwareSerial.cpp#L221-L222.

@matthijskooijman
Copy link
Collaborator

I think this is a known issue which was also discussed at #3745 (though that was originally about another problem). The fix you propose will work, but introduces other problems. Could see if the PR at #3865 fixes the problem for you? I think it should.

@Coding-Badly
Copy link

The fix you propose will work, but introduces other problems.

Such as?

@facchinm facchinm added Architecture: AVR Applies only to the AVR microcontrollers (Uno, etc.) Component: HardwareSerial The hardware serial functionality of the core libraries labels Oct 16, 2017
@matthijskooijman
Copy link
Collaborator

@johnholman
Copy link

johnholman commented Oct 25, 2017

Yes, this seems to be a duplicate of second issue raised in #3745 and fixed by #6855

@sandeepmistry
Copy link
Contributor

I believe this is closed by #6855.

Please let us know if the issue still occurs and we can re-open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Architecture: AVR Applies only to the AVR microcontrollers (Uno, etc.) Component: HardwareSerial The hardware serial functionality of the core libraries
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants