diff options
author | Catalin Patulea | 2010-07-05 11:45:52 -0700 |
---|---|---|
committer | Johnathan Corgan | 2010-07-05 11:47:02 -0700 |
commit | 7361b03b245776938f0576435e3ccf4806622e3e (patch) | |
tree | 31c5bf55b4a5b5c76ab2cf0bfb3aeb3fa6335fa2 /gr-wxgui/src | |
parent | 0bc11568d20e2b2215dc072f70f947db07b1ce9c (diff) | |
download | gnuradio-7361b03b245776938f0576435e3ccf4806622e3e.tar.gz gnuradio-7361b03b245776938f0576435e3ccf4806622e3e.tar.bz2 gnuradio-7361b03b245776938f0576435e3ccf4806622e3e.zip |
gr-wxgui: fix non-gl scope sink only updating one channel
This fixes a bug where, when using nongl scopesink, only the real part
of a complex input is shown. After applying this patch, both Ch1 and
Ch2 can be seen on the scope display.
Diffstat (limited to 'gr-wxgui/src')
-rw-r--r-- | gr-wxgui/src/python/scopesink_nongl.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gr-wxgui/src/python/scopesink_nongl.py b/gr-wxgui/src/python/scopesink_nongl.py index 5c1379ee6..bf2c50917 100644 --- a/gr-wxgui/src/python/scopesink_nongl.py +++ b/gr-wxgui/src/python/scopesink_nongl.py @@ -217,13 +217,13 @@ class input_watcher (gru.msgq_runner): chan_data = s[start:start+bytes_per_chan] rec = numpy.fromstring (chan_data, numpy.float32) records.append (rec) - - # print "nrecords = %d, reclen = %d" % (len (records),nsamples) - - de = DataEvent (records) - wx.PostEvent (self.event_receiver, de) - records = [] - del de + + # print "nrecords = %d, reclen = %d" % (len (records),nsamples) + + de = DataEvent (records) + wx.PostEvent (self.event_receiver, de) + records = [] + del de self.iscan -= 1 |