1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-09-27 15:26:33 -04:00

Added sanity check in HackRF devices enumeration

This commit is contained in:
f4exb 2019-09-24 21:30:53 +02:00
parent aca92c7d32
commit fb8dfec0eb

View File

@ -90,6 +90,11 @@ hackrf_device *DeviceHackRF::open_hackrf_from_sequence(int sequence)
void DeviceHackRF::enumOriginDevices(const QString& hardwareId, PluginInterface::OriginDevices& originDevices)
{
hackrf_device_list_t *hackrf_devices = hackrf_device_list();
if (hackrf_devices == nullptr) {
return;
}
hackrf_device *hackrf_ptr;
read_partid_serialno_t read_partid_serialno;
int i;