diff options
author | Denis Shienkov <denis.shienkov@gmail.com> | 2015-08-11 18:27:27 +0300 |
---|---|---|
committer | Denis Shienkov <denis.shienkov@gmail.com> | 2015-08-12 14:22:46 +0000 |
commit | 78a66df196d0d99c3985f2247f010f36e350471a (patch) | |
tree | 21568a387818ea2d84aaa2524ed5396a34ba61c8 /src | |
parent | c0aebf3dfe3c6837db8f91d65ac4b6b7b44e100e (diff) | |
download | qtserialport-78a66df196d0d99c3985f2247f010f36e350471a.tar.gz |
Do not append a non-serial ports on Free BSD
Commit 4328ab9709561842c680bc8bb7e4f2abc3ea3852 does not fix an issue,
because need to analyze ends of the deviceAbsoluteFilePath variable.
Change-Id: Idc16ab06bb06d5770fed2e05bd091fb53dd3307e
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/serialport/qserialportinfo_unix.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serialport/qserialportinfo_unix.cpp b/src/serialport/qserialportinfo_unix.cpp index 0fc5046..69c39dc 100644 --- a/src/serialport/qserialportinfo_unix.cpp +++ b/src/serialport/qserialportinfo_unix.cpp @@ -87,8 +87,8 @@ static QStringList filteredDeviceFilePaths() #ifdef Q_OS_FREEBSD // it is a quick workaround to skip the non-serial devices - if (deviceFilePaths.endsWith(QLatin1String(".init")) - || deviceFilePaths.endsWith(QLatin1String(".lock"))) { + if (deviceAbsoluteFilePath.endsWith(QLatin1String(".init")) + || deviceAbsoluteFilePath.endsWith(QLatin1String(".lock"))) { continue; } #endif |