- Notifications
You must be signed in to change notification settings - Fork10
Addconfig
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 ourterms of service andprivacy 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?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Added RS485Config
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 theRS485_fullduplex andRS485_halfduplex examples to include theconfig
parameter?
@@ -17,7 +17,7 @@ RS485CommClass::RS485CommClass(arduino::UART& uart_itf, PinName rs_tx_pin, PinNa | |||
RS485CommClass::~RS485CommClass() | |||
{ } | |||
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.
voidRS485CommClass::begin(unsignedlong baudrate,uint16_t config = SERIAL_8N1,int predelay,int postdelay) { | |
voidRS485CommClass::begin(unsignedlong baudrate,uint16_t config,int predelay,int postdelay) { |
config
parameter to RS485 initialization
Uh oh!
There was an error while loading.Please reload this page.
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.