From 7361b03b245776938f0576435e3ccf4806622e3e Mon Sep 17 00:00:00 2001 From: Catalin Patulea Date: Mon, 5 Jul 2010 11:45:52 -0700 Subject: 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. --- gr-wxgui/src/python/scopesink_nongl.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'gr-wxgui/src') 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 -- cgit