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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user