diff options
author | Solomon Tan <solomonbstoner@yahoo.com.au> | 2021-09-23 21:50:20 +0800 |
---|---|---|
committer | Martin Braun <martin@gnuradio.org> | 2021-09-24 01:57:55 -0700 |
commit | 6360992c4b3fcac3cc3226a709fb0bac57b432b1 (patch) | |
tree | 2b4b0dfaa5f1141b5fd8e079d81a040bdb3af8f4 /gr-blocks | |
parent | f8149c16c2d08c2debfcb913ebfec511c2fcb6da (diff) |
gr-blocks: Fix cpp support for unpacked to packed
In commit 612c650, cpp support was added to the unpacked_to_packed
block. However, the cpp flag was not added. Neither was the endianness
option set correctly. This commit fixes it using packed_to_unpacked as
reference.
Signed-off-by: Solomon Tan <solomonbstoner@yahoo.com.au>
Diffstat (limited to 'gr-blocks')
-rw-r--r-- | gr-blocks/grc/blocks_unpacked_to_packed_xx.block.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gr-blocks/grc/blocks_unpacked_to_packed_xx.block.yml b/gr-blocks/grc/blocks_unpacked_to_packed_xx.block.yml index b477293594..43d87ed53e 100644 --- a/gr-blocks/grc/blocks_unpacked_to_packed_xx.block.yml +++ b/gr-blocks/grc/blocks_unpacked_to_packed_xx.block.yml @@ -1,6 +1,6 @@ id: blocks_unpacked_to_packed_xx label: Unpacked to Packed -flags: [ python ] +flags: [ python, cpp ] parameters: - id: type @@ -46,5 +46,7 @@ cpp_templates: includes: ['#include <gnuradio/blocks/unpacked_to_packed.h>'] declarations: 'blocks::unpacked_to_packed_${type.fcn}::sptr ${id};' make: 'this->${id} = blocks::unpacked_to_packed_${type.fcn}::make(${bits_per_chunk}, ${endianness});' + translations: + gr\.: '' file_format: 1 |