summaryrefslogtreecommitdiff
path: root/gr-blocks/grc
diff options
context:
space:
mode:
authorJacob Gilbert <mrjacobagilbert@gmail.com>2020-08-27 08:11:33 -0700
committermormj <34754695+mormj@users.noreply.github.com>2020-10-24 17:45:47 -0400
commit9248b29768c7810f029a1188726b2ad05141f382 (patch)
treef67f4ffecb79f4bf962c30f2f134beac86c111ae /gr-blocks/grc
parent88c11a8cf3c437ed0e1a477ce30e7cc01ebc2bfd (diff)
blocks: improvements to the message_debug block
aggregates the data to be printed into a stringstream so that it is printed at the same time reducing debug information becoming muddled between competing cout statements. this change also provides an argument to this block to disable the printing of PDU uniform vectors which are often not needed for debug purposes
Diffstat (limited to 'gr-blocks/grc')
-rw-r--r--gr-blocks/grc/blocks_message_debug.block.yml12
1 files changed, 11 insertions, 1 deletions
diff --git a/gr-blocks/grc/blocks_message_debug.block.yml b/gr-blocks/grc/blocks_message_debug.block.yml
index 1ebf5b378a..86f9876af5 100644
--- a/gr-blocks/grc/blocks_message_debug.block.yml
+++ b/gr-blocks/grc/blocks_message_debug.block.yml
@@ -2,6 +2,14 @@ id: blocks_message_debug
label: Message Debug
flags: [ python, cpp ]
+parameters:
+- id: en_uvec
+ label: PDU Vectors
+ dtype: enum
+ default: 'True'
+ options: ['True', 'False']
+ option_labels: ['On', 'Off']
+
inputs:
- domain: message
id: print
@@ -15,7 +23,9 @@ inputs:
templates:
imports: from gnuradio import blocks
- make: blocks.message_debug()
+ make: blocks.message_debug(${en_uvec})
+ callbacks:
+ - set_vector_print(${en_uvec})
cpp_templates:
includes: ['#include <gnuradio/blocks/message_debug.h>']