gr-wxgui: fix non-gl scope sink only updating one channel
authorCatalin Patulea <cat@vv.carleton.ca>
Mon, 5 Jul 2010 18:45:52 +0000 (11:45 -0700)
committerJohnathan Corgan <jcorgan@corganenterprises.com>
Mon, 5 Jul 2010 18:47:02 +0000 (11:47 -0700)
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

index 5c1379ee643d9992e2446296b51183492b447ba0..bf2c5091759b97e879c4b4f1a64d7da36abb28f8 100644 (file)
@@ -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