summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArturs Artamonovs <dos21h@gmail.com>2023-03-09 14:48:48 +0000
committerArturs Artamonovs <dos21h@gmail.com>2023-03-09 14:48:48 +0000
commitc1ae0bcdb4eb27404d132b108f3d8da5ccdcf817 (patch)
tree67c5f36a4a3a6dc0bd49e57c62eb646084e339ee
parent7d629e71afd4ef97c45ad2a0cbf93631aa4a9bc9 (diff)
downloadpyairspyhf-c1ae0bcdb4eb27404d132b108f3d8da5ccdcf817.tar.gz
pyairspyhf-c1ae0bcdb4eb27404d132b108f3d8da5ccdcf817.zip
Fix issues with new airspyhf_rx.py
-rw-r--r--README.md2
-rwxr-xr-x[-rw-r--r--]airspyhf_rx.py8
2 files changed, 4 insertions, 6 deletions
diff --git a/README.md b/README.md
index 50cd170..fd99dac 100644
--- a/README.md
+++ b/README.md
@@ -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")