1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-07 16:34:45 -04:00

AMBE: Don't try to open empty device. #2614

This commit is contained in:
Jon Beniston
2026-01-16 09:58:27 +00:00
parent d8db586c45
commit e1c4b61fd7
+5 -1
View File
@@ -50,7 +50,11 @@ AMBEWorker::~AMBEWorker()
bool AMBEWorker::open(const std::string& deviceRef)
{
return m_dvController.open(deviceRef);
if (deviceRef.empty()) {
return false;
} else {
return m_dvController.open(deviceRef);
}
}
void AMBEWorker::close()