-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
arch: serial: fix all TCGETS retrieving zero baud rate #2040
arch: serial: fix all TCGETS retrieving zero baud rate #2040
Conversation
cfsetispeed() now stores baud rate to c_cflag member of struct termios, so it must not be overridden later on. Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
sigh I really don't have time to pacify nxstyle for all these serial.c files. The guy from Xiaomi who broke this in 03c795 should really do the cleanup.... :) |
See #1767 (comment) |
I will fix the rest warning. |
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
@juniskane @xiaoxiang781216 I just pushed the rather large nxstyle fixes to this PR. |
Thanks @btashton! |
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.
LGTM.
@xiaoxiang781216 @btashton - thank you for fixing this. Unfortunately I do not think we are done, it is not enough, There is a bigger problem with the #1767 change. With that change NuttX can not support any baud rate. This will break many real world radio protocols! #1767 needs to be changed to allow any baud rate again. |
cfsetispeed() now stores baud rate to c_cflag member of
struct termios, so it must not be overridden later on.
Summary
Impact
Testing