From be9f4a08449c2bff807f8987e8f58a1705ee4bcb Mon Sep 17 00:00:00 2001 From: tvoid Date: Tue, 8 Apr 2008 09:33:35 -0600 Subject: -preproc defs for tune testing -made burst ouput connections optional -added realtime scheduling setup --- gsm-tvoid/src/lib/gsm_burst_ff.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gsm-tvoid/src/lib/gsm_burst_ff.cc') diff --git a/gsm-tvoid/src/lib/gsm_burst_ff.cc b/gsm-tvoid/src/lib/gsm_burst_ff.cc index d73e73d..086f21b 100755 --- a/gsm-tvoid/src/lib/gsm_burst_ff.cc +++ b/gsm-tvoid/src/lib/gsm_burst_ff.cc @@ -16,7 +16,7 @@ gsm_burst_ff_sptr gsm_make_burst_ff (gr_feval_ll *t) static const int MIN_IN = 1; // minimum number of input streams static const int MAX_IN = 1; // maximum number of input streams -static const int MIN_OUT = 1; // minimum number of output streams +static const int MIN_OUT = 0; // minimum number of output streams static const int MAX_OUT = 1; // maximum number of output streams gsm_burst_ff::gsm_burst_ff (gr_feval_ll *t) : @@ -77,8 +77,10 @@ int gsm_burst_ff::general_work (int noutput_items, else if (b >= 2 * MAX_CORR_DIST) b = 2 * MAX_CORR_DIST - 1; - memcpy(out+rval*USEFUL_BITS, d_burst_buffer + b, USEFUL_BITS*sizeof(float)); - rval++; + if (out) { + memcpy(out+rval*USEFUL_BITS, d_burst_buffer + b, USEFUL_BITS*sizeof(float)); + rval++; + } switch ( d_clock_options & QB_MASK ) { case QB_QUARTER: //Can't do this in the FF version -- cgit v1.2.3