Update Serial.cpp

Add serial port friendly name display.
This commit is contained in:
ZhiYuanNJ 2024-06-03 17:47:04 +08:00
parent fdce37fac4
commit 12c1fcfb85

View File

@ -633,7 +633,10 @@ void IO::Drivers::Serial::refreshSerialDevices()
Q_FOREACH (QSerialPortInfo info, validPortList)
{
if (!info.isNull())
ports.append(info.portName());
{
QString p = info.portName() + " " + info.description();
ports.append(p);
}
}
// Update list only if necessary