From 921bf87fd29eb215be30b75ca86a3fe31c95c1a3 Mon Sep 17 00:00:00 2001 From: nymea Date: Tue, 14 May 2019 12:32:21 +0200 Subject: [PATCH] fixed onBaudrateChanged signal --- serialportcommander/devicepluginserialportcommander.cpp | 4 ++-- serialportcommander/devicepluginserialportcommander.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/serialportcommander/devicepluginserialportcommander.cpp b/serialportcommander/devicepluginserialportcommander.cpp index 51382fb5..bff5e691 100644 --- a/serialportcommander/devicepluginserialportcommander.cpp +++ b/serialportcommander/devicepluginserialportcommander.cpp @@ -93,7 +93,7 @@ DeviceManager::DeviceSetupStatus DevicePluginSerialPortCommander::setupDevice(De connect(serialPort, SIGNAL(error(QSerialPort::SerialPortError)), this, SLOT(onSerialError(QSerialPort::SerialPortError))); connect(serialPort, SIGNAL(readyRead()), this, SLOT(onReadyRead())); - connect(serialPort, SIGNAL(baudRateChanged(qint32, QSerialPort::Direction)), this, SLOT(onBaudRateChanged(qint32, QSerialPort::Direction))); + connect(serialPort, SIGNAL(baudRateChanged(qint32, QSerialPort::Directions)), this, SLOT(onBaudRateChanged(qint32, QSerialPort::Directions))); connect(serialPort, SIGNAL(parityChanged(QSerialPort::Parity)), this, SLOT(onParityChanged(QSerialPort::Parity))); connect(serialPort, SIGNAL(dataBitsChanged(QSerialPort::DataBits)), this, SLOT(onDataBitsChanged(QSerialPort::DataBits))); connect(serialPort, SIGNAL(stopBitsChanged(QSerialPort::StopBits)), this, SLOT(onStopBitsChanged(QSerialPort::StopBits))); @@ -202,7 +202,7 @@ void DevicePluginSerialPortCommander::onSerialError(const QSerialPort::SerialPor } } -void DevicePluginSerialPortCommander::onBaudRateChanged(qint32 baudRate, QSerialPort::Direction direction) +void DevicePluginSerialPortCommander::onBaudRateChanged(qint32 baudRate, QSerialPort::Directions direction) { Q_UNUSED(direction) QSerialPort *serialPort = static_cast(sender()); diff --git a/serialportcommander/devicepluginserialportcommander.h b/serialportcommander/devicepluginserialportcommander.h index 08a796ce..302ab647 100644 --- a/serialportcommander/devicepluginserialportcommander.h +++ b/serialportcommander/devicepluginserialportcommander.h @@ -52,7 +52,7 @@ private: private slots: void onReadyRead(); void onSerialError(const QSerialPort::SerialPortError &error); - void onBaudRateChanged(qint32 baudRate, QSerialPort::Direction direction); + void onBaudRateChanged(qint32 baudRate, QSerialPort::Directions direction); void onParityChanged(QSerialPort::Parity parity); void onDataBitsChanged(QSerialPort::DataBits dataBits); void onStopBitsChanged(QSerialPort::StopBits stopBits);