Use single source rather than simple source.

This commit is contained in:
Nick Foster 2010-11-28 17:08:58 -08:00
parent d23530615f
commit b1b990ad49

View File

@ -54,7 +54,7 @@ class adsb_rx_block (gr.top_block):
self.args = args self.args = args
if options.filename is None: if options.filename is None:
self.u = uhd.simple_source("", uhd.io_type_t.COMPLEX_FLOAT32) self.u = uhd.single_source("", uhd.io_type_t.COMPLEX_FLOAT32)
if(options.rx_subdev_spec is None): if(options.rx_subdev_spec is None):
options.rx_subdev_spec = "" options.rx_subdev_spec = ""
@ -79,7 +79,7 @@ class adsb_rx_block (gr.top_block):
self.u = gr.file_source(gr.sizeof_gr_complex, options.filename) self.u = gr.file_source(gr.sizeof_gr_complex, options.filename)
print "Rate is %i" % (rate,) print "Rate is %i" % (rate,)
print "Gain is %i" % (self.u.get_gain(),)
pass_all = 0 pass_all = 0
if options.output_all : if options.output_all :
pass_all = 1 pass_all = 1