Commit 4281a113 authored by Lorenz Meier's avatar Lorenz Meier

Made USB serial modem detection more generic on Mac OS

parent 6a36dc44
......@@ -325,9 +325,8 @@ QVector<QString>* SerialLink::getCurrentPorts()
for (int i = list.size() - 1; i >= 0; i--) {
QFileInfo fileInfo = list.at(i);
if (fileInfo.fileName().contains(QString("ttyUSB")) ||
fileInfo.fileName().contains(QString("tty.usb")) ||
fileInfo.fileName().contains(QString("tty.")) ||
fileInfo.fileName().contains(QString("ttyS")) ||
fileInfo.fileName().contains(QString("tty.SLAB")) ||
fileInfo.fileName().contains(QString("ttyACM")))
{
ports->append(fileInfo.canonicalFilePath());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment