summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--grc/base/Block.py10
-rw-r--r--grc/python/flow_graph.tmpl3
2 files changed, 13 insertions, 0 deletions
diff --git a/grc/base/Block.py b/grc/base/Block.py
index 970cf516fe..668675c685 100644
--- a/grc/base/Block.py
+++ b/grc/base/Block.py
@@ -154,6 +154,16 @@ class Block(Element):
'value': '0'
})
))
+ self.get_params().append(self.get_parent().get_parent().Param(
+ block=self,
+ n=odict({'name': 'Max Output Buffer',
+ 'key': 'maxoutbuf',
+ 'type': 'int',
+ 'hide': 'part',
+ 'value': '0'
+ })
+ ))
+
def back_ofthe_bus(self, portlist):
portlist.sort(key=lambda a: a.get_type() == 'bus');
diff --git a/grc/python/flow_graph.tmpl b/grc/python/flow_graph.tmpl
index 5daf80f685..cf13317d1d 100644
--- a/grc/python/flow_graph.tmpl
+++ b/grc/python/flow_graph.tmpl
@@ -167,6 +167,9 @@ gr.io_signaturev($(len($io_sigs)), $(len($io_sigs)), [$(', '.join($size_strs))])
#if (len($blk.get_sources())>0) and $blk.has_param('minoutbuf') and (int($blk.get_param('minoutbuf').get_evaluated()) > 0)
(self.$blk.get_id()).set_min_output_buffer($blk.get_param('minoutbuf').get_evaluated())
#end if
+ #if (len($blk.get_sources())>0) and $blk.has_param('maxoutbuf') and (int($blk.get_param('maxoutbuf').get_evaluated()) > 0)
+ (self.$blk.get_id()).set_max_output_buffer($blk.get_param('maxoutbuf').get_evaluated())
+ #end if
#end if
#end for
########################################################