From c3928be6d674bd3bb6df2c81b2486bcd4b82304b Mon Sep 17 00:00:00 2001 From: itas109 Date: Tue, 10 Dec 2024 23:05:04 +0800 Subject: [PATCH] style(code): format code style by clang-format --- include/CSerialPort/SerialPortUnixBase.h | 12 ++++++------ include/CSerialPort/SerialPortWinBase.h | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/include/CSerialPort/SerialPortUnixBase.h b/include/CSerialPort/SerialPortUnixBase.h index cf36906..911356f 100644 --- a/include/CSerialPort/SerialPortUnixBase.h +++ b/include/CSerialPort/SerialPortUnixBase.h @@ -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 打开串口 diff --git a/include/CSerialPort/SerialPortWinBase.h b/include/CSerialPort/SerialPortWinBase.h index 17e02d6..a566cda 100644 --- a/include/CSerialPort/SerialPortWinBase.h +++ b/include/CSerialPort/SerialPortWinBase.h @@ -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 打开串口