mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-03-31 16:48:29 -04:00
Added sanity check in HackRF devices enumeration
This commit is contained in:
parent
aca92c7d32
commit
fb8dfec0eb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user