1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-30 15:52:12 +01:00

Fixes a problem in OSX that prevent to use two serial ports with the same displayed name (for example from USB multiple serial adapter)

Now serial ports are internally referred using their physName instead of friendName
This commit is contained in:
a*morale 2012-06-03 20:31:48 +02:00
parent ed92edc421
commit 37e5e0d2a2

View File

@ -128,7 +128,7 @@ QList <Core::IConnection::device> SerialConnection::availableDevices()
foreach( QextPortInfo port, ports ) {
device d;
d.displayName=port.friendName;
d.name=port.friendName;
d.name=port.physName;
list.append(d);
}
}
@ -143,7 +143,7 @@ QIODevice *SerialConnection::openDevice(const QString &deviceName)
}
QList<QextPortInfo> ports = QextSerialEnumerator::getPorts();
foreach( QextPortInfo port, ports ) {
if(port.friendName == deviceName)
if(port.physName == deviceName)
{
//we need to handle port settings here...
PortSettings set;