aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()