summaryrefslogtreecommitdiff
path: root/grc/python/Generator.py
diff options
context:
space:
mode:
authorSeth Hitefield <sdhitefield@gmail.com>2015-06-10 16:04:51 -0400
committerSebastian Koslowski <koslowski@kit.edu>2015-06-11 09:40:24 +0200
commit91dd2fce59ba81d4dc22b9dcdc909211cafe9f5f (patch)
tree51b237a53e69e1c1a06648866b6c1bfae6993cc7 /grc/python/Generator.py
parent80272df0bd29c02e7d677062431ba0ae4e07ed60 (diff)
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.
Diffstat (limited to 'grc/python/Generator.py')
-rw-r--r--grc/python/Generator.py2
1 files changed, 1 insertions, 1 deletions
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. "