From 3d1b95832a522c589bfad7808bb3527d7f362d6e Mon Sep 17 00:00:00 2001 From: Ian Crawford Date: Tue, 26 May 2015 13:01:58 -0700 Subject: [PATCH] Fix crash with missing gr.udp_source() in gnuradio-companion 3.7.7.1. Changed to blocks.udp_source(). --- python/radio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/radio.py b/python/radio.py index 5f41c45..a466629 100644 --- a/python/radio.py +++ b/python/radio.py @@ -219,7 +219,7 @@ class modes_radio (gr.top_block, pubsub): ip, port = re.search("(.*)\:(\d{1,5})", options.source).groups() except: raise Exception("Please input UDP source e.g. 192.168.10.1:12345") - self._u = gr.udp_source(gr.sizeof_gr_complex, ip, int(port)) + self._u = blocks.udp_source(gr.sizeof_gr_complex, ip, int(port)) print "Using UDP source %s:%s" % (ip, port) else: self._u = blocks.file_source(gr.sizeof_gr_complex, options.source)