mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-05 15:34:57 -04:00
Bugfix: make sure device is not open when attempting to closing it
This commit is contained in:
@@ -142,6 +142,10 @@ void BladerfOutput::closeDevice()
|
||||
{
|
||||
int res;
|
||||
|
||||
if (m_dev == 0) { // was never open
|
||||
return;
|
||||
}
|
||||
|
||||
if ((res = bladerf_enable_module(m_dev, BLADERF_MODULE_TX, false)) < 0)
|
||||
{
|
||||
qCritical("BladerfOutput::closeDevice: bladerf_enable_module with return code %d", res);
|
||||
|
||||
Reference in New Issue
Block a user