[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/03: qtgui: fixed a small bug in the time
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/03: qtgui: fixed a small bug in the time sink where it could miss a tag to display every now and then. |
Date: |
Fri, 30 Jan 2015 16:57:26 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch master
in repository gnuradio.
commit ea158083c3932da1cb73fc03bd70b1c9a78d97d8
Author: Tom Rondeau <address@hidden>
Date: Fri Jan 30 07:30:41 2015 -0500
qtgui: fixed a small bug in the time sink where it could miss a tag to
display every now and then.
---
gr-qtgui/lib/time_sink_c_impl.cc | 4 ++--
gr-qtgui/lib/time_sink_f_impl.cc | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/gr-qtgui/lib/time_sink_c_impl.cc b/gr-qtgui/lib/time_sink_c_impl.cc
index 0e4eade..c9f8d77 100644
--- a/gr-qtgui/lib/time_sink_c_impl.cc
+++ b/gr-qtgui/lib/time_sink_c_impl.cc
@@ -520,7 +520,7 @@ namespace gr {
uint64_t nr = nitems_read(d_trigger_channel/2);
std::vector<gr::tag_t> tags;
get_tags_in_range(tags, d_trigger_channel/2,
- nr, nr + nitems,
+ nr, nr + nitems + 1,
d_trigger_tag_key);
if(tags.size() > 0) {
d_triggered = true;
@@ -616,7 +616,7 @@ namespace gr {
uint64_t nr = nitems_read(idx);
std::vector<gr::tag_t> tags;
- get_tags_in_range(tags, idx, nr, nr + nitems);
+ get_tags_in_range(tags, idx, nr, nr + nitems + 1);
for(size_t t = 0; t < tags.size(); t++) {
tags[t].offset = tags[t].offset - nr + (d_index-d_start-1);
}
diff --git a/gr-qtgui/lib/time_sink_f_impl.cc b/gr-qtgui/lib/time_sink_f_impl.cc
index 642ee16..8e45e2c 100644
--- a/gr-qtgui/lib/time_sink_f_impl.cc
+++ b/gr-qtgui/lib/time_sink_f_impl.cc
@@ -522,7 +522,7 @@ namespace gr {
uint64_t nr = nitems_read(d_trigger_channel);
std::vector<gr::tag_t> tags;
get_tags_in_range(tags, d_trigger_channel,
- nr, nr + nitems,
+ nr, nr + nitems + 1,
d_trigger_tag_key);
if(tags.size() > 0) {
d_triggered = true;
@@ -611,7 +611,7 @@ namespace gr {
uint64_t nr = nitems_read(idx);
std::vector<gr::tag_t> tags;
- get_tags_in_range(tags, idx, nr, nr + nitems);
+ get_tags_in_range(tags, idx, nr, nr + nitems + 1);
for(size_t t = 0; t < tags.size(); t++) {
tags[t].offset = tags[t].offset - nr + (d_index-d_start-1);
}