Skip to content
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

Add support for additional baud rate 57600 #119

Merged
merged 2 commits into from
Jun 14, 2023

Conversation

sgouraud
Copy link

@sgouraud sgouraud commented Jun 6, 2023

According specification, half-duplex asynchronous serial should support at least one of 9600, 19200, 38400, 57600, 115200, 230400 Baud. Adding support for 57600.

Copy link
Member

@sidcha sidcha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nit, otherwise LGTM.

Comment on lines 199 to 200
if (baud != 9600 && baud != 19200 && baud != 38400 && baud != 57600 &&
baud != 115200 && baud != 230400)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The coding style we follow requires the multi-line if conditions to align to the next char after the opening bracket '('. So the hunk above becomes:

Suggested change
if (baud != 9600 && baud != 19200 && baud != 38400 && baud != 57600 &&
baud != 115200 && baud != 230400)
if (baud != 9600 && baud != 19200 && baud != 38400 && baud != 57600 &&
baud != 115200 && baud != 230400)

(Same change to the other hunk as well)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, sorry. Tabs in my IDE is 4 spaces equivalent, I didn't notice it ^^. PR updated according your review. Thanks for your great job :)

@sidcha sidcha merged commit 6dc2e4a into goToMain:master Jun 14, 2023
8 checks passed
@sgouraud sgouraud deleted the baudrate-enhancement branch June 14, 2023 11:45
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.

None yet

2 participants