summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/const_sink_c_impl.cc
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2017-01-12 12:10:47 -0800
committerJohnathan Corgan <johnathan@corganlabs.com>2017-01-12 12:10:47 -0800
commit6225e5d4d1edd67c896c6c43bdc584a078480a8d (patch)
tree3b389a8009da2a39a7bc9bc6c25096dd04b252ba /gr-qtgui/lib/const_sink_c_impl.cc
parent3f14e437aae69e5a96be4f777f4314945dbc2955 (diff)
parent591369362b985ac721f1c7bd0ef4fea9b5c759d9 (diff)
Merge branch 'maint'
Diffstat (limited to 'gr-qtgui/lib/const_sink_c_impl.cc')
-rw-r--r--gr-qtgui/lib/const_sink_c_impl.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/gr-qtgui/lib/const_sink_c_impl.cc b/gr-qtgui/lib/const_sink_c_impl.cc
index 63777d7827..7d9a3941c8 100644
--- a/gr-qtgui/lib/const_sink_c_impl.cc
+++ b/gr-qtgui/lib/const_sink_c_impl.cc
@@ -98,7 +98,6 @@ namespace gr {
set_trigger_mode(TRIG_MODE_FREE, TRIG_SLOPE_POS, 0, 0);
set_history(2); // so we can look ahead for the trigger slope
- declare_sample_delay(1); // delay the tags for a history of 2
}
const_sink_c_impl::~const_sink_c_impl()
@@ -439,7 +438,7 @@ namespace gr {
if(tags.size() > 0) {
d_triggered = true;
trigger_index = tags[0].offset - nr;
- d_start = d_index + trigger_index - 1;
+ d_start = d_index + trigger_index;
d_end = d_start + d_size;
d_trigger_count = 0;
}
@@ -516,7 +515,7 @@ namespace gr {
in = (const gr_complex*)input_items[n];
volk_32fc_deinterleave_64f_x2(&d_residbufs_real[n][d_index],
&d_residbufs_imag[n][d_index],
- &in[0], nitems);
+ &in[history()-1], nitems);
}
d_index += nitems;