mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-03-24 21:28:29 -04:00
AMBE engine: no direct serial device support for Windows. Fixed debug message
This commit is contained in:
parent
71192a4130
commit
a6a6a078f5
@ -65,6 +65,11 @@ void AMBEEngine::getComList()
|
||||
m_comList.push_back(std::string(comCStr));
|
||||
}
|
||||
}
|
||||
|
||||
// Do not activate serial support at all for windows
|
||||
void AMBEEngine::scan(std::vector<QString>& ambeDevices)
|
||||
{
|
||||
}
|
||||
#else
|
||||
void AMBEEngine::getComList()
|
||||
{
|
||||
@ -182,7 +187,6 @@ std::string AMBEEngine::get_driver(const std::string& tty)
|
||||
|
||||
return "";
|
||||
}
|
||||
#endif // not Windows
|
||||
|
||||
void AMBEEngine::scan(std::vector<QString>& ambeDevices)
|
||||
{
|
||||
@ -205,6 +209,7 @@ void AMBEEngine::scan(std::vector<QString>& ambeDevices)
|
||||
++it;
|
||||
}
|
||||
}
|
||||
#endif // not Windows
|
||||
|
||||
bool AMBEEngine::registerController(const std::string& deviceRef)
|
||||
{
|
||||
@ -244,8 +249,8 @@ void AMBEEngine::releaseController(const std::string& deviceRef)
|
||||
it->thread->wait(100);
|
||||
it->worker->m_inputMessageQueue.clear();
|
||||
it->worker->close();
|
||||
m_controllers.erase(it);
|
||||
qDebug() << "AMBEEngine::releaseController: closed device at: " << it->device.c_str();
|
||||
m_controllers.erase(it);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user