From 004cd776d90d11fbc1677749dc574124f44d0f1c Mon Sep 17 00:00:00 2001 From: Javier Arribas Date: Mon, 21 Nov 2011 10:04:37 +0000 Subject: [PATCH] BUG FIX: Now the file_signal_source obeys the SignalSource.samples configuration parameter in the conf file. This fix allows limiting the number of samples to be processed by the receiver. git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@79 64b25241-fba3-4117-9849-534c7e92360d --- .../adapters/file_signal_source.cc | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/src/algorithms/signal_source/adapters/file_signal_source.cc b/src/algorithms/signal_source/adapters/file_signal_source.cc index 9f05083d7..acc7a0dc1 100644 --- a/src/algorithms/signal_source/adapters/file_signal_source.cc +++ b/src/algorithms/signal_source/adapters/file_signal_source.cc @@ -234,19 +234,16 @@ gr_basic_block_sptr FileSignalSource::get_left_block() gr_basic_block_sptr FileSignalSource::get_right_block() { - if (samples_ != 0) + if (dump_==true) { - return valve_; - } - else - { - if (enable_throttle_control_ == true) - { - return throttle_; - } - else - { - return file_source_; - } + return file_source_; + }else{ + if (samples_ != 0) + { + return valve_; + }else + { + return throttle_; + } } }