Scan for serial AMBE devices on Windows

pull/1543/head
Jon Beniston 2022-12-21 21:40:00 +00:00
rodzic 53c1fdb877
commit 564f4c9ad0
1 zmienionych plików z 19 dodań i 2 usunięć

Wyświetl plik

@ -78,10 +78,27 @@ void AMBEEngine::getComList()
}
}
// Do not activate serial support at all for windows
void AMBEEngine::scan(QList<QString>& ambeDevices)
{
(void) ambeDevices;
qDebug("AMBEEngine::scan");
AMBEEngine::getComList();
std::vector<std::string>::const_iterator it = m_comList.begin();
ambeDevices.clear();
while (it != m_comList.end())
{
AMBEWorker *worker = new AMBEWorker();
qDebug("AMBEEngine::scan: com: %s", it->c_str());
if (worker->open(*it))
{
ambeDevices.push_back(QString(it->c_str()));
worker->close();
}
delete worker;
++it;
}
}
#elif defined(__APPLE__)
void AMBEEngine::getComList()