diff options
-rw-r--r-- | README.md | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | airspyhf_rx.py | 8 |
2 files changed, 4 insertions, 6 deletions
@@ -10,7 +10,9 @@ http://git.main.lv/cgit.cgi/pyairspyhf.git # Source code +``` git clone https://git.main.lv/cgit/pyairspyhf.git +``` # API ## libairspyhf diff --git a/airspyhf_rx.py b/airspyhf_rx.py index da0e32e..ac84856 100644..100755 --- a/airspyhf_rx.py +++ b/airspyhf_rx.py @@ -31,10 +31,10 @@ for devi in range(0,ndev): libairspyhf.airspyhf_list_devices(byref(serial),devi+1) print("Device %d: Serial number %s"%(int(devi),hex(serial.value) )) -print("try to open device") +print("Try to open device") dev_p = airspyhf_device_t_p(None) if args.serial != None: - ret = libairspyhf.airspyhf_open_sn(dev_p, args.serial) + ret = libairspyhf.airspyhf_open_sn(dev_p, int(args.serial,16)) else: serial = c_uint64(0) libairspyhf.airspyhf_list_devices(byref(serial), 1) @@ -123,10 +123,6 @@ print("closed: Returned %d"%(ret)) print(f"Total samples received {sample_count}") -libairspyhf.py_test() - -libairspyhf.py_test_cb(read_samples_cb) - wave_file.close() print("All is ok") |