From aa950c9aed736628de4df620b1db7ee580db3449 Mon Sep 17 00:00:00 2001 From: James Mare Date: Tue, 1 Aug 2023 21:09:27 -0700 Subject: [PATCH] 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. --- src/comm/LinkManager.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/comm/LinkManager.cc b/src/comm/LinkManager.cc index 1215516..864ef8c 100644 --- a/src/comm/LinkManager.cc +++ b/src/comm/LinkManager.cc @@ -713,8 +713,8 @@ void LinkManager::_updateSerialPorts() _commPortList.clear(); _commPortDisplayList.clear(); #ifndef NO_SERIAL_LINK - QList portList = QSerialPortInfo::availablePorts(); - for (const QSerialPortInfo &info: portList) + QList portList = QGCSerialPortInfo::availablePorts(); + for (const QGCSerialPortInfo &info: portList) { QString port = info.systemLocation().trimmed(); _commPortList += port;