1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-09-05 06:37:51 -04:00

AMBE engine: no direct serial device support for Windows. Fixed debug message

This commit is contained in:
f4exb 2019-07-22 04:27:30 +02:00
parent 71192a4130
commit a6a6a078f5

View File

@ -65,6 +65,11 @@ void AMBEEngine::getComList()
m_comList.push_back(std::string(comCStr)); m_comList.push_back(std::string(comCStr));
} }
} }
// Do not activate serial support at all for windows
void AMBEEngine::scan(std::vector<QString>& ambeDevices)
{
}
#else #else
void AMBEEngine::getComList() void AMBEEngine::getComList()
{ {
@ -182,7 +187,6 @@ std::string AMBEEngine::get_driver(const std::string& tty)
return ""; return "";
} }
#endif // not Windows
void AMBEEngine::scan(std::vector<QString>& ambeDevices) void AMBEEngine::scan(std::vector<QString>& ambeDevices)
{ {
@ -205,6 +209,7 @@ void AMBEEngine::scan(std::vector<QString>& ambeDevices)
++it; ++it;
} }
} }
#endif // not Windows
bool AMBEEngine::registerController(const std::string& deviceRef) bool AMBEEngine::registerController(const std::string& deviceRef)
{ {
@ -244,8 +249,8 @@ void AMBEEngine::releaseController(const std::string& deviceRef)
it->thread->wait(100); it->thread->wait(100);
it->worker->m_inputMessageQueue.clear(); it->worker->m_inputMessageQueue.clear();
it->worker->close(); it->worker->close();
m_controllers.erase(it);
qDebug() << "AMBEEngine::releaseController: closed device at: " << it->device.c_str(); qDebug() << "AMBEEngine::releaseController: closed device at: " << it->device.c_str();
m_controllers.erase(it);
break; break;
} }