Commit caaff76a authored by lm's avatar lm

Added ttyACM devices for MAC OS as well

parent 69167e47
......@@ -439,7 +439,7 @@ void SerialConfigurationWindow::setupPortList()
QFileInfoList list = dir.entryInfoList();
for (int i = list.size() - 1; i >= 0; i--) {
QFileInfo fileInfo = list.at(i);
if (fileInfo.fileName().contains(QString("ttyUSB")) || fileInfo.fileName().contains(QString("ttyS")) || fileInfo.fileName().contains(QString("tty.usbserial"))) {
if (fileInfo.fileName().contains(QString("ttyUSB")) || fileInfo.fileName().contains(QString("ttyS")) || fileInfo.fileName().contains(QString("tty.usbserial")) || fileInfo.fileName().contains(QString("ttyACM"))) {
if (ui.portName->findText(fileInfo.canonicalFilePath()) == -1) {
ui.portName->addItem(fileInfo.canonicalFilePath());
if (!userConfigured) ui.portName->setEditText(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