mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 21:54:55 -04:00
HackRF input plugin: use actual sample rate and bandwidth values not indexes
This commit is contained in:
@@ -21,9 +21,9 @@ hackrf_device *DeviceHackRF::open_hackrf(int sequence)
|
||||
{
|
||||
hackrf_error rc;
|
||||
|
||||
// TODO: this may not work if several HackRF Devices are running concurrently. It should be handled globally in the application
|
||||
rc = (hackrf_error) hackrf_init();
|
||||
|
||||
// TODO: this may not work if several HackRF Devices are running concurrently. It should be handled globally in the application
|
||||
if (rc != HACKRF_SUCCESS)
|
||||
{
|
||||
fprintf(stderr, "DeviceHackRF::open_hackrf: failed to initiate HackRF library %s\n", hackrf_error_name(rc));
|
||||
|
||||
Reference in New Issue
Block a user