diff options
author | Josh Morman <jmorman@perspectalabs.com> | 2019-07-10 17:39:30 -0400 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2019-07-17 22:08:56 +0200 |
commit | e0bfdf0c0dd4ad0df9078b02c913c2a9b778f2f1 (patch) | |
tree | 7341cbb0913e836ec82573f0fd74e967e2c77f05 /gr-blocks/lib/random_pdu_impl.cc | |
parent | 37528f7a89e70ca50651dccf43ab7b61792486ad (diff) |
blocks: random_pdu mask parameter fails under python3
The use of chr() in the grc file for the mask
creates an invalid input to the random_pdu make
function
1) Change the inputs to unsigned char since this is a mask
2) Remove the chr() from the grc yml
I'm not entirely sure what the purpose of the chr(mask) in
the make function was, but it created invalid input
Instead just pass the bitmask directly
fixes #2557
Diffstat (limited to 'gr-blocks/lib/random_pdu_impl.cc')
-rw-r--r-- | gr-blocks/lib/random_pdu_impl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-blocks/lib/random_pdu_impl.cc b/gr-blocks/lib/random_pdu_impl.cc index 9dfc761a2b..07e729810a 100644 --- a/gr-blocks/lib/random_pdu_impl.cc +++ b/gr-blocks/lib/random_pdu_impl.cc @@ -32,12 +32,12 @@ namespace gr { namespace blocks { random_pdu::sptr - random_pdu::make(int min_items, int max_items, char byte_mask, int length_modulo) + random_pdu::make(int min_items, int max_items, unsigned char byte_mask, int length_modulo) { return gnuradio::get_initial_sptr(new random_pdu_impl(min_items, max_items, byte_mask, length_modulo)); } - random_pdu_impl::random_pdu_impl(int min_items, int max_items, char byte_mask, int length_modulo) + random_pdu_impl::random_pdu_impl(int min_items, int max_items, unsigned char byte_mask, int length_modulo) : block("random_pdu", io_signature::make (0, 0, 0), io_signature::make (0, 0, 0)), |