From bb6412be69404f73e3adf7ebc0622d1cf0162fa5 Mon Sep 17 00:00:00 2001 From: Michael Ossmann Date: Fri, 10 Feb 2017 16:38:01 -0700 Subject: [PATCH] removed bin width from hackrf_sweep output format --- qspectrumanalyzer/backend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qspectrumanalyzer/backend.py b/qspectrumanalyzer/backend.py index 16ec82c..120abd5 100644 --- a/qspectrumanalyzer/backend.py +++ b/qspectrumanalyzer/backend.py @@ -312,8 +312,8 @@ class HackRFSweepThread(RtlPowerBaseThread): def parse_output(self, buf): """Parse one buf of output from hackrf_sweep""" - (low_edge, high_edge, bin_width) = struct.unpack('QQI', buf[:20]) - data = np.fromstring(buf[20:], dtype='