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
This commit is contained in:
Javier Arribas 2011-11-21 10:04:37 +00:00
parent 93bb040a1e
commit 004cd776d9
1 changed files with 10 additions and 13 deletions

View File

@ -234,19 +234,16 @@ gr_basic_block_sptr FileSignalSource::get_left_block()
gr_basic_block_sptr FileSignalSource::get_right_block() gr_basic_block_sptr FileSignalSource::get_right_block()
{ {
if (samples_ != 0) if (dump_==true)
{ {
return valve_; return file_source_;
} }else{
else if (samples_ != 0)
{ {
if (enable_throttle_control_ == true) return valve_;
{ }else
return throttle_; {
} return throttle_;
else }
{
return file_source_;
}
} }
} }