-
Notifications
You must be signed in to change notification settings - Fork 11
Add config parameter to RS485 initialization
#27
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
Added RS485Config
leonardocavagnis
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.
Thanks for contributing! 😄
This should resolve the compilation issue.
Could you please also update the RS485_fullduplex and RS485_halfduplex examples to include the config parameter?
src/RS485CommClass.cpp
Outdated
| { } | ||
|
|
||
| void RS485CommClass::begin(unsigned long baudrate, int predelay, int postdelay) { | ||
| void RS485CommClass::begin(unsigned long baudrate, uint16_t config = SERIAL_8N1, int predelay, int postdelay) { |
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.
| void RS485CommClass::begin(unsigned long baudrate, uint16_t config = SERIAL_8N1, int predelay, int postdelay) { | |
| void RS485CommClass::begin(unsigned long baudrate, uint16_t config, int predelay, int postdelay) { |
config parameter to RS485 initialization
|
Memory usage change @ bf6efca
Click for full report table
Click for full report CSV |
|
Hello Leonardo |
Dear all
I recently updated my projects to the new repository. When using RS485, I noticed that there is no option to set the UART Config. This PR adds this option back in.