Skip to content

Commit b1f871e

Browse files
Update RS485CommClass.h
1 parent b5a6775 commit b1f871e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/RS485CommClass.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,11 @@ class RS485CommClass : public RS485Class {
5454
* This method initializes the RS485 communication protocol with the specified baud rate and pre/post delays.
5555
*
5656
* @param baudrate The desired baud rate for the RS485 communication.
57+
* @param config The desired Serial config (bits, parity and stopbits), see HardwareSerial.h
5758
* @param predelay The delay before sending data in the RS485 communication (default: RS485_DEFAULT_PRE_DELAY).
5859
* @param postdelay The delay after sending data in the RS485 communication (default: RS485_DEFAULT_POST_DELAY).
5960
*/
60-
void begin(unsigned long baudrate = 115200, int predelay = RS485_DEFAULT_PRE_DELAY, int postdelay = RS485_DEFAULT_POST_DELAY);
61+
void begin(unsigned long baudrate = 115200, uint16_t config = SERIAL_8N1, int predelay = RS485_DEFAULT_PRE_DELAY, int postdelay = RS485_DEFAULT_POST_DELAY);
6162

6263
/**
6364
* @brief Close the RS485 communication protocol.

0 commit comments

Comments
 (0)