summaryrefslogtreecommitdiff
path: root/gr-digital/grc
diff options
context:
space:
mode:
authorJosh Morman <jmorman@perspectalabs.com>2019-05-28 16:58:04 -0400
committerMartin Braun <martin.braun@ettus.com>2019-05-28 19:22:37 -0700
commitcea8c170bcda208ed802e77ee2fb7cc69eface7a (patch)
tree4e1bd3dceb010390f83a7cc21e558322932c90fc /gr-digital/grc
parentb43d796849e8c0f2a79bfda1d54f6ef85a331fae (diff)
digital: default header format object template issues
Since the first argument of the header_format_default object is a uint64 but the template argument is a string, there is some confusion and addition of unnecessary quotes Fix by stripping the quotes with eval() in the var_make Fixes #2052
Diffstat (limited to 'gr-digital/grc')
-rw-r--r--gr-digital/grc/variable_header_format_default.block.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/gr-digital/grc/variable_header_format_default.block.yml b/gr-digital/grc/variable_header_format_default.block.yml
index de593eab68..7afadfb615 100644
--- a/gr-digital/grc/variable_header_format_default.block.yml
+++ b/gr-digital/grc/variable_header_format_default.block.yml
@@ -10,17 +10,17 @@ parameters:
- id: threshold
label: Threshold
dtype: int
- default: '0'
+ default: 0
- id: bps
label: Payload Bits per Symbol
dtype: int
- default: '1'
+ default: 1
value: ${ digital.header_format_default(access_code, threshold, bps) }
templates:
imports: from gnuradio import digital
var_make: |-
- % if int(access_code)==0:
+ % if int(eval(access_code))==0:
self.${id} = ${id} = digital.header_format_default(digital.packet_utils.default_access_code,\
${threshold}, ${bps})
% else:
@@ -32,7 +32,7 @@ cpp_templates:
includes: ['#include <gnuradio/digital/header_format_default.h>']
declarations: 'digital::header_format_default::sptr ${id};'
var_make: |-
- % if int(access_code)==0:
+ % if int(eval(access_code))==0:
this->${id} = ${id} = digital::header_format_default(digital.packet_utils.default_access_code,\
${threshold}, ${bps});
% else: