mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-15 05:22:53 +08:00
Update Serial.cpp
Add serial port friendly name display.
This commit is contained in:
parent
fdce37fac4
commit
12c1fcfb85
@ -633,7 +633,10 @@ void IO::Drivers::Serial::refreshSerialDevices()
|
|||||||
Q_FOREACH (QSerialPortInfo info, validPortList)
|
Q_FOREACH (QSerialPortInfo info, validPortList)
|
||||||
{
|
{
|
||||||
if (!info.isNull())
|
if (!info.isNull())
|
||||||
ports.append(info.portName());
|
{
|
||||||
|
QString p = info.portName() + " " + info.description();
|
||||||
|
ports.append(p);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update list only if necessary
|
// Update list only if necessary
|
||||||
|
Loading…
x
Reference in New Issue
Block a user