Browse Source

Fix UI Displaying incorrect serial port list

The list of serial ports that ended up in the UI was from
QSerialPortInfo::availablePorts(), however the list available
to be used is a filtered list from QGCSerialPortInfo::availablePorts()
Changed so that the UI pulls the filtered list, and no ports present
which dont actually work.
QGC4.4
James Mare 2 years ago committed by Beat Küng
parent
commit
aa950c9aed
  1. 4
      src/comm/LinkManager.cc

4
src/comm/LinkManager.cc

@ -713,8 +713,8 @@ void LinkManager::_updateSerialPorts() @@ -713,8 +713,8 @@ void LinkManager::_updateSerialPorts()
_commPortList.clear();
_commPortDisplayList.clear();
#ifndef NO_SERIAL_LINK
QList<QSerialPortInfo> portList = QSerialPortInfo::availablePorts();
for (const QSerialPortInfo &info: portList)
QList<QGCSerialPortInfo> portList = QGCSerialPortInfo::availablePorts();
for (const QGCSerialPortInfo &info: portList)
{
QString port = info.systemLocation().trimmed();
_commPortList += port;

Loading…
Cancel
Save