1
0
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:
f4exb
2017-04-14 01:49:48 +02:00
parent dea2764811
commit 651303e860
2 changed files with 2 additions and 14 deletions
@@ -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
}
}