Commit 69167e47 authored by lm's avatar lm

Added serial support for /dev/ttyACM devices on LINUX

parent 5f021441
......@@ -398,7 +398,7 @@ void SerialConfigurationWindow::setupPortList()
QFileInfoList list = dir.entryInfoList();
for (int i = 0; i < list.size(); ++i) {
QFileInfo fileInfo = list.at(i);
if (fileInfo.fileName().contains(QString("ttyUSB")) || fileInfo.fileName().contains(QString("ttyS"))) {
if (fileInfo.fileName().contains(QString("ttyUSB")) || fileInfo.fileName().contains(QString("ttyS")) || fileInfo.fileName().contains(QString("ttyACM"))) {
if (ui.portName->findText(fileInfo.canonicalFilePath()) == -1) {
ui.portName->addItem(fileInfo.canonicalFilePath());
if (!userConfigured) ui.portName->setEditText(fileInfo.canonicalFilePath());
......
......@@ -75,7 +75,7 @@ protected:
// HOME,
// SAFE_AREA
// };
// enum editMode currEditMode; ///< The current edit mode on the map
//editMode currEditMode; ///< The current edit mode on the map
};
......
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