完善调试功能。
This commit is contained in:
@ -88,7 +88,8 @@ void CdcUpdater::timerEvent(QTimerEvent *event) {
|
||||
const auto serialPortInfos = QSerialPortInfo::availablePorts();
|
||||
for (const QSerialPortInfo &portInfo : serialPortInfos) {
|
||||
LOG(info) << "portName:" << portInfo.portName().toStdString()
|
||||
<< ", vendorIdentifier: " << portInfo.vendorIdentifier();
|
||||
<< ", vendorIdentifier: " << portInfo.vendorIdentifier()
|
||||
<< ", productIdentifier: " << portInfo.productIdentifier();
|
||||
if (portInfo.vendorIdentifier() == 0xffff) {
|
||||
LOG(info) << "founded device: " << portInfo.portName().toStdString();
|
||||
emit deviceDiscovered(portInfo);
|
||||
|
Reference in New Issue
Block a user