diff options
author | Igor Freire <igor@blockstream.com> | 2021-04-12 21:30:35 -0300 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-04-17 19:58:05 -0400 |
commit | f65153f0cc230629526ab44163d33626580b002f (patch) | |
tree | 47f3187da69d7e10369f453856f1b3b5069ca589 | |
parent | e84addac78b512bd3053f33b7889e135037a2702 (diff) |
Store tag key on a static variable
Signed-off-by: Igor Freire <igor@blockstream.com>
-rw-r--r-- | gr-blocks/lib/rotator_cc_impl.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-blocks/lib/rotator_cc_impl.cc b/gr-blocks/lib/rotator_cc_impl.cc index 84c3a6ecef..364e40f5e9 100644 --- a/gr-blocks/lib/rotator_cc_impl.cc +++ b/gr-blocks/lib/rotator_cc_impl.cc @@ -86,6 +86,7 @@ int rotator_cc_impl::work(int noutput_items, const gr_complex* in = (const gr_complex*)input_items[0]; gr_complex* out = (gr_complex*)output_items[0]; const uint64_t n_written = nitems_written(0); + static const pmt::pmt_t phase_inc_tag_key = pmt::intern("rot_phase_inc"); if (d_inc_update_queue.empty()) { d_r.rotateN(out, in, noutput_items); @@ -118,7 +119,7 @@ int rotator_cc_impl::work(int noutput_items, if (d_tag_inc_updates) { add_item_tag(0, next_update.offset, - pmt::string_to_symbol("rot_phase_inc"), + phase_inc_tag_key, pmt::from_float(next_update.phase_inc)); } } |