-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix: SoftwareSerial flush #2905
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
base: main
Are you sure you want to change the base?
Conversation
fpistm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @gicking
Thanks for the PR.
The commit changed SerialUSB.baud() etc. to return the actual CDC line coding
should not be in this PR.
|
hello Frederic, sorry for the inconvenience! Unfortunately I am not very experienced with Github - i.e. basically I am just following instructions by ChatGPT ;-) I understand the issue, but how can I separate the 2 branches now? Also, for my own library development I need a branch that contains both PRs. For your help thanks a lot in advance! |
|
Your previous PR is already merged #2892 . So you have to fetch the latest main from the core on your fork then rebase your branch on top of the main branch. Easiest way to do this is: When done you can rebase your branch on top of the main: |
|
ok, I did what you asked for. Should I now start a new pull request or is this automatically carried over? |
|
Hum don't know what you've made but this is not correct. I've reworked your PR. It is now correct only one commit. |
Fixes stm32duino#2904. Signed-off-by: gicking <icking@onlinehome.de>
93a3148 to
08687af
Compare
sorry for the inconvenience! Hope I do it better next time... |
This PR fixes the following bug:
SoftwareSerial.flush()returns too early, see issue #2904Motivation
I maintain a LIN master library for various architectures and serial interfaces. When porting to STM32 I noticed an faulty behavior of
SoftwareSerial.flush()(see issue report). This pull request fixes this.Validation
original:

after bugfix:

See also this sketch SoftwareSerial_flush.zip