Browse Source

[LP Support] - Set DTR to enable comm with the device

QGC4.4
Alessio Morale 9 years ago
parent
commit
468d200be5
  1. 2
      src/comm/SerialLink.cc

2
src/comm/SerialLink.cc

@ -216,6 +216,8 @@ bool SerialLink::_hardwareConnect(QSerialPort::SerialPortError& error, QString& @@ -216,6 +216,8 @@ bool SerialLink::_hardwareConnect(QSerialPort::SerialPortError& error, QString&
return false; // couldn't open serial port
}
_port->setDataTerminalReady(true);
qCDebug(SerialLinkLog) << "Configuring port";
_port->setBaudRate (_config->baud());
_port->setDataBits (static_cast<QSerialPort::DataBits> (_config->dataBits()));

Loading…
Cancel
Save