mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 18:50:44 +00:00
Only debug dump other serial ports once
This commit is contained in:
parent
15de13f107
commit
bc582f1746
@ -27,6 +27,7 @@ QList<SerialOximeter *> GetOxiLoaders()
|
||||
}
|
||||
bool SerialOximeter::scanDevice(QString keyword,quint16 vendor_id, quint16 product_id)
|
||||
{
|
||||
static bool dumponce = true;
|
||||
QStringList ports;
|
||||
|
||||
//qDebug() << "Scanning for USB Serial devices";
|
||||
@ -52,7 +53,7 @@ bool SerialOximeter::scanDevice(QString keyword,quint16 vendor_id, quint16 produ
|
||||
|
||||
qDebug() << dbg.toLocal8Bit().data();
|
||||
break;
|
||||
} else {
|
||||
} else if (dumponce) {
|
||||
QString dbg=QString("Other Serial Port: %1 %2 %3 %4").arg(name).arg(desc).arg(info->manufacturer()).arg(info->systemLocation());
|
||||
|
||||
if (info->hasProductIdentifier()) //60000
|
||||
@ -63,6 +64,7 @@ bool SerialOximeter::scanDevice(QString keyword,quint16 vendor_id, quint16 produ
|
||||
qDebug() << dbg.toLocal8Bit().data();
|
||||
}
|
||||
}
|
||||
dumponce = false;
|
||||
if (ports.isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user