mirror of
https://github.com/x-tools-author/x-tools.git
synced 2025-09-15 15:28:40 +08:00
chore: update the file
This commit is contained in:
parent
bc2c38d31b
commit
48c3fc26ce
@ -68,9 +68,14 @@ QStringList SerialPortScanner::refresh()
|
||||
QStringList portNames;
|
||||
auto infos = QSerialPortInfo::availablePorts();
|
||||
for (auto &info : infos) {
|
||||
const QString portName = info.portName();
|
||||
if (portName.toLower().contains("bluetooth")) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (m_isBusyDevicesIgnored.load()) {
|
||||
if (!isBusyDevice(info.portName())) {
|
||||
portNames.append(info.portName());
|
||||
if (!isBusyDevice(portName)) {
|
||||
portNames.append(portName);
|
||||
}
|
||||
} else {
|
||||
portNames.append(info.portName());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user