Browse Source

Del Numberofretrieves that was remained after clean code

master
nasi 3 years ago
parent
commit
55ddea8ec1
  1. 1
      Servo/src/ModbusMaster.cpp
  2. 1
      Test/MainWindow.cpp

1
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())
{

1
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";

Loading…
Cancel
Save