Merge pull request #4 from jynik/dev-burst_tagger_fix

burst tagger: Fixed off-by-one in get_tags_in_range() usage
This commit is contained in:
Bastian Bloessl
2015-07-16 10:16:49 +02:00
+1 -2
View File
@@ -73,8 +73,7 @@ burst_tagger_impl::work(int noutput_items,
std::vector<gr::tag_t> tags; std::vector<gr::tag_t> tags;
const uint64_t nread = nitems_read(0); const uint64_t nread = nitems_read(0);
get_tags_in_range(tags, 0, nread, nread + noutput_items - 1, get_tags_in_range(tags, 0, nread, nread + noutput_items, d_tag_name);
d_tag_name);
std::sort(tags.begin(), tags.end(), tag_t::offset_compare); std::sort(tags.begin(), tags.end(), tag_t::offset_compare);
// copy until the first tag // copy until the first tag