diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2017-07-13 13:59:00 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2017-07-13 13:59:00 -0700 |
commit | 19c0aeea4320e40aea11564879e3d2b9c0ca0d21 (patch) | |
tree | e6f73c0b171dddd489971edbbb529972085ff824 /gr-blocks/grc | |
parent | 851d7a27f09c27f84ba7f9ad19c3ba835c61af7f (diff) | |
parent | 3e1503b26d0e4e00a53c74a16bad85a99e297f5a (diff) |
Merge branch 'master' into next
Diffstat (limited to 'gr-blocks/grc')
-rw-r--r-- | gr-blocks/grc/blocks_file_source.xml | 12 | ||||
-rw-r--r-- | gr-blocks/grc/blocks_tag_gate.xml | 2 |
2 files changed, 12 insertions, 2 deletions
diff --git a/gr-blocks/grc/blocks_file_source.xml b/gr-blocks/grc/blocks_file_source.xml index 7ac573f2da..1f09e95168 100644 --- a/gr-blocks/grc/blocks_file_source.xml +++ b/gr-blocks/grc/blocks_file_source.xml @@ -8,8 +8,11 @@ <name>File Source</name> <key>blocks_file_source</key> <import>from gnuradio import blocks</import> - <make>blocks.file_source($type.size*$vlen, $file, $repeat)</make> + <import>import pmt</import> + <make>blocks.file_source($type.size*$vlen, $file, $repeat) +self.$(id).set_begin_tag($begin_tag)</make> <callback>open($file, $repeat)</callback> + <callback>self.$(id).set_begin_tag($begin_tag)</callback> <param> <name>File</name> <key>file</key> @@ -66,6 +69,13 @@ <value>1</value> <type>int</type> </param> + + <param> + <name>Add begin tag</name> + <key>begin_tag</key> + <value>pmt.PMT_NIL</value> + <type>raw</type> + </param> <check>$vlen > 0</check> <source> <name>out</name> diff --git a/gr-blocks/grc/blocks_tag_gate.xml b/gr-blocks/grc/blocks_tag_gate.xml index 34475ff96f..0cf6dc42ed 100644 --- a/gr-blocks/grc/blocks_tag_gate.xml +++ b/gr-blocks/grc/blocks_tag_gate.xml @@ -4,7 +4,7 @@ <key>blocks_tag_gate</key> <import>from gnuradio import blocks</import> <make>blocks.tag_gate($type.size * $vlen, $propagate_tags) -self.$(id).set_single_key($single_key))</make> +self.$(id).set_single_key($single_key)</make> <callback>self.$(id).set_single_key($single_key)</callback> <param> |