Skip to content

Commit

Permalink
style(code): format code style by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
itas109 committed Dec 10, 2024
1 parent 48abf8d commit c3928be
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions include/CSerialPort/SerialPortUnixBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ class CSerialPortUnixBase : public CSerialPortBase
* @param readBufferSize [in] the read buffer size 读取缓冲区大小
*/
void init(const char *portName,
int baudRate = itas109::BaudRate9600,
itas109::Parity parity = itas109::ParityNone,
itas109::DataBits dataBits = itas109::DataBits8,
itas109::StopBits stopbits = itas109::StopOne,
itas109::FlowControl flowControl = itas109::FlowNone,
unsigned int readBufferSize = 4096);
int baudRate = itas109::BaudRate9600,
itas109::Parity parity = itas109::ParityNone,
itas109::DataBits dataBits = itas109::DataBits8,
itas109::StopBits stopbits = itas109::StopOne,
itas109::FlowControl flowControl = itas109::FlowNone,
unsigned int readBufferSize = 4096);

/**
* @brief open serial port 打开串口
Expand Down
12 changes: 6 additions & 6 deletions include/CSerialPort/SerialPortWinBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ class CSerialPortWinBase : public CSerialPortBase
* @param readBufferSize [in] the read buffer size 读取缓冲区大小
*/
void init(const char *portName,
int baudRate = itas109::BaudRate9600,
itas109::Parity parity = itas109::ParityNone,
itas109::DataBits dataBits = itas109::DataBits8,
itas109::StopBits stopbits = itas109::StopOne,
itas109::FlowControl flowControl = itas109::FlowNone,
unsigned int readBufferSize = 4096);
int baudRate = itas109::BaudRate9600,
itas109::Parity parity = itas109::ParityNone,
itas109::DataBits dataBits = itas109::DataBits8,
itas109::StopBits stopbits = itas109::StopOne,
itas109::FlowControl flowControl = itas109::FlowNone,
unsigned int readBufferSize = 4096);

/**
* @brief open serial port 打开串口
Expand Down

0 comments on commit c3928be

Please sign in to comment.