diff --git a/Servo/src/ModbusMaster.cpp b/Servo/src/ModbusMaster.cpp index 0e07747..964c025 100644 --- a/Servo/src/ModbusMaster.cpp +++ b/Servo/src/ModbusMaster.cpp @@ -69,7 +69,6 @@ void ModbusMaster::connectToDevice(ModbusConfig modbusConfig, ExpConfig& expConf modbusConfig.stopBits); _modbusDevice->setTimeout(modbusConfig.responseTime); - _modbusDevice->setNumberOfRetries(modbusConfig.numberOfRetries); if(!_modbusDevice->connectDevice()) { diff --git a/Test/MainWindow.cpp b/Test/MainWindow.cpp index 8f1d563..0ef906c 100644 --- a/Test/MainWindow.cpp +++ b/Test/MainWindow.cpp @@ -28,7 +28,6 @@ void MainWindow::on_connect_clicked() configDevice.serialPort = "/dev/pts/2"; configDevice.clientAddress = 1; configDevice.responseTime = 1000; - configDevice.numberOfRetries = 3; qDebug() << "before init"; modbusWrapper.init(); qDebug() << "after init";