aboutsummaryrefslogtreecommitdiffstats
path: root/dpd
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-05-12 14:49:32 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-05-12 14:49:32 +0200
commit403ce1709cd8204769f43a2e6cc68c0286d0fb25 (patch)
tree84f1a45e206e06ff1e3311d837c8913e30f988e8 /dpd
parent2759e2e2a86e97eeee5934d5d9a3b4c911a47229 (diff)
downloaddabmod-403ce1709cd8204769f43a2e6cc68c0286d0fb25.tar.gz
dabmod-403ce1709cd8204769f43a2e6cc68c0286d0fb25.tar.bz2
dabmod-403ce1709cd8204769f43a2e6cc68c0286d0fb25.zip
Fix typo in show_spectrum.py
Diffstat (limited to 'dpd')
-rwxr-xr-xdpd/show_spectrum.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dpd/show_spectrum.py b/dpd/show_spectrum.py
index c1d5fe5..477cd99 100755
--- a/dpd/show_spectrum.py
+++ b/dpd/show_spectrum.py
@@ -77,7 +77,7 @@ def get_samples(port, num_samps_to_request):
rxframe_bytes = recv_exact(s, num_samps * SIZEOF_SAMPLE)
rxframe = np.fromstring(rxframe_bytes, dtype=np.complex64)
else:
- txframe = np.array([], dtype=np.complex64)
+ rxframe = np.array([], dtype=np.complex64)
print("Disconnecting")
s.close()