mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 21:54:55 -04:00
HackRF: Rx/Tx opem/close new style corrections
This commit is contained in:
@@ -89,12 +89,6 @@ bool HackRFInput::openDevice()
|
||||
}
|
||||
else
|
||||
{
|
||||
if (hackrf_init() != HACKRF_SUCCESS) // TODO: this may not work if several HackRF Devices are running concurrently. It should be handled globally in the application
|
||||
{
|
||||
qCritical("HackRFInput::openDevice: could not init HackRF");
|
||||
return false;
|
||||
}
|
||||
|
||||
if ((m_dev = DeviceHackRF::open_hackrf(device)) == 0)
|
||||
{
|
||||
qCritical("HackRFInput::openDevice: could not open HackRF #%d", device);
|
||||
@@ -148,7 +142,7 @@ void HackRFInput::closeDevice()
|
||||
if(m_dev != 0) // close BladeRF
|
||||
{
|
||||
hackrf_close(m_dev);
|
||||
hackrf_exit(); // TODO: this may not work if several HackRF Devices are running concurrently. It should be handled globally in the application
|
||||
//hackrf_exit(); // TODO: this may not work if several HackRF Devices are running concurrently. It should be handled globally in the application
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user