From 93af3737561f42d86936acd36e8650f3d1130967 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Sat, 25 May 2019 12:38:39 +0000 Subject: [PATCH] - fixed tag git-svn-id: http://moon:8086/svn/software/trunk/projects/GnuRadio@468 b431acfa-c32f-4a4a-93f1-934dc6c82436 --- gr-jay/lib/peak_detect_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gr-jay/lib/peak_detect_impl.cc b/gr-jay/lib/peak_detect_impl.cc index 53b7458..07aa674 100644 --- a/gr-jay/lib/peak_detect_impl.cc +++ b/gr-jay/lib/peak_detect_impl.cc @@ -411,7 +411,7 @@ namespace gr { Peak &peak = m_peakHistory[i]; pmt::pmt_t tag_key = pmt::string_to_symbol(std::string("pos_id_") + std::to_string(peak.id)); pmt::pmt_t tag_value = pmt::from_long(peak.pos); - add_item_tag(DATA, nitems_written(DATA) + peak.pos, tag_key, tag_value, m_tag_id); + add_item_tag(DATA, nitems_written(DATA) + k, tag_key, tag_value, m_tag_id); } m_frameCount++;