mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-15 07:29:15 +01:00
gcs serial: fix serial port telemetry on Linux
On Linux, port.portName is the simple name of the serial port like 'ttyS0'. The physical name of the device is '/dev/ttyS0'. This value is stored in port.physName. This bug doesn't get in the way on Windows since 'COM1' is both the simple name as well as the physical name. On Linux, the distinction is important. git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@710 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
e2721136ae
commit
6225fedbb5
@ -84,7 +84,7 @@ QIODevice *SerialConnection::openDevice(const QString &deviceName)
|
||||
set.StopBits = STOP_1;
|
||||
set.FlowControl = FLOW_OFF;
|
||||
set.Timeout_Millisec = 500;
|
||||
return new QextSerialPort(port.portName, set);
|
||||
return new QextSerialPort(port.physName, set);
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user