mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-02-21 04:58:38 -05:00
Scan for serial AMBE devices on Windows
This commit is contained in:
parent
53c1fdb877
commit
564f4c9ad0
@ -78,10 +78,27 @@ void AMBEEngine::getComList()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Do not activate serial support at all for windows
|
|
||||||
void AMBEEngine::scan(QList<QString>& ambeDevices)
|
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__)
|
#elif defined(__APPLE__)
|
||||||
void AMBEEngine::getComList()
|
void AMBEEngine::getComList()
|
||||||
|
Loading…
Reference in New Issue
Block a user