From 878d2b5bc53a0a326eb2956d5a560ea6c5fabd7a Mon Sep 17 00:00:00 2001 From: csrichter Date: Tue, 9 May 2017 13:01:10 +0200 Subject: [PATCH] bugfix: when syncing only try every second input value --- lib/sync_decim_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sync_decim_impl.cc b/lib/sync_decim_impl.cc index df8ae81..e2954b1 100644 --- a/lib/sync_decim_impl.cc +++ b/lib/sync_decim_impl.cc @@ -127,7 +127,7 @@ namespace gr { int skip_is_better_counter=0; if (noutput_items>8)//TODO: what if there are never more than 9 outputs requested { - for (int i = 0; i < noutput_items; i++) { + for (int i = 0; i < noutput_items; i+=2) { if(i==0){ out_skip=last_input-in[DECIM*i];} else{