From 91dd2fce59ba81d4dc22b9dcdc909211cafe9f5f Mon Sep 17 00:00:00 2001 From: Seth Hitefield <sdhitefield@gmail.com> Date: Wed, 10 Jun 2015 16:04:51 -0400 Subject: grc: Added ability to bypass blocks (Suggested by Chris Headley). Only for blocks that have a single source and sink of the same type. Feature can be disabled per block using the 'disable_bypass' flag in the block definition. --- grc/python/Generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'grc/python/Generator.py') diff --git a/grc/python/Generator.py b/grc/python/Generator.py index a3f9f10fc1..d9e92cd31f 100644 --- a/grc/python/Generator.py +++ b/grc/python/Generator.py @@ -86,7 +86,7 @@ class TopBlockGenerator(object): def write(self): """generate output and write it to files""" # do throttle warning - throttling_blocks = filter(lambda b: b.throttle(), self._flow_graph.get_enabled_blocks()) + throttling_blocks = filter(lambda b: b.throtteling(), self._flow_graph.get_enabled_blocks()) if not throttling_blocks and self._generate_options != 'hb': Messages.send_warning("This flow graph may not have flow control: " "no audio or RF hardware blocks found. " -- cgit v1.2.3