diff options
Diffstat (limited to 'airspyhf_rx.py')
-rwxr-xr-x | airspyhf_rx.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/airspyhf_rx.py b/airspyhf_rx.py index a3b5634..2ae35f7 100755 --- a/airspyhf_rx.py +++ b/airspyhf_rx.py @@ -54,7 +54,7 @@ ret = libairspyhf.airspyhf_get_samplerates(dev_p,byref(nsrates),c_uint32(0)) print("ret %d"%ret) print("sample rates %d"% nsrates.value) -supported_samplerates = (c_uint32*4)(0) +supported_samplerates = (c_uint32*nsrates.value)(0) ret = libairspyhf.airspyhf_get_samplerates(dev_p,supported_samplerates,nsrates) print("ret %d"%ret) print("Sample rate list:") |