diff options
author | karel <5636152+karel@users.noreply.github.com> | 2021-02-19 12:02:05 +0200 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-02-23 06:27:43 -0500 |
commit | f3b05ac8e79c20908685f283835f6a2728940b62 (patch) | |
tree | 53345d9ad61652dcc8ab9a54c4abc3d1b5a440d8 /gr-blocks/grc | |
parent | cbc9344475873034096acd308d91cda994dfbfa9 (diff) |
gr-blocks: remove indexing in file source cpp template
file[1:-1] results in file name becoming NotImplemented
Signed-off-by: karel <5636152+karel@users.noreply.github.com>
Diffstat (limited to 'gr-blocks/grc')
-rw-r--r-- | gr-blocks/grc/blocks_file_source.block.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-blocks/grc/blocks_file_source.block.yml b/gr-blocks/grc/blocks_file_source.block.yml index 6beea9f908..9db1e2a7f9 100644 --- a/gr-blocks/grc/blocks_file_source.block.yml +++ b/gr-blocks/grc/blocks_file_source.block.yml @@ -60,7 +60,7 @@ templates: cpp_templates: includes: ['#include <gnuradio/blocks/file_source.h>'] declarations: 'blocks::file_source::sptr ${id};' - make: 'this->${id} =blocks::file_source::make(${type.size}*${vlen}, "${file[1:-1]}", ${repeat}, ${offset}, ${length});' + make: 'this->${id} =blocks::file_source::make(${type.size}*${vlen}, ${file}, ${repeat}, ${offset}, ${length});' callbacks: - open(${file}, ${repeat}) translations: |