mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-08 12:10:43 +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)
|
bool SerialOximeter::scanDevice(QString keyword,quint16 vendor_id, quint16 product_id)
|
||||||
{
|
{
|
||||||
|
static bool dumponce = true;
|
||||||
QStringList ports;
|
QStringList ports;
|
||||||
|
|
||||||
//qDebug() << "Scanning for USB Serial devices";
|
//qDebug() << "Scanning for USB Serial devices";
|
||||||
@ -52,7 +53,7 @@ bool SerialOximeter::scanDevice(QString keyword,quint16 vendor_id, quint16 produ
|
|||||||
|
|
||||||
qDebug() << dbg.toLocal8Bit().data();
|
qDebug() << dbg.toLocal8Bit().data();
|
||||||
break;
|
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());
|
QString dbg=QString("Other Serial Port: %1 %2 %3 %4").arg(name).arg(desc).arg(info->manufacturer()).arg(info->systemLocation());
|
||||||
|
|
||||||
if (info->hasProductIdentifier()) //60000
|
if (info->hasProductIdentifier()) //60000
|
||||||
@ -63,6 +64,7 @@ bool SerialOximeter::scanDevice(QString keyword,quint16 vendor_id, quint16 produ
|
|||||||
qDebug() << dbg.toLocal8Bit().data();
|
qDebug() << dbg.toLocal8Bit().data();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
dumponce = false;
|
||||||
if (ports.isEmpty()) {
|
if (ports.isEmpty()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user