mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 12:10:34 +00:00
simplify get_right_block()
This commit is contained in:
parent
e0eb4bd769
commit
4282386a30
@ -144,15 +144,18 @@ gr::basic_block_sptr FileSourceBase::get_left_block()
|
||||
|
||||
gr::basic_block_sptr FileSourceBase::get_right_block()
|
||||
{
|
||||
if (samples_ > 0)
|
||||
{
|
||||
return valve_;
|
||||
}
|
||||
if (enable_throttle_control_ == true)
|
||||
{
|
||||
return throttle_;
|
||||
}
|
||||
if (valve_) return valve_;
|
||||
if (throttle_) return throttle_;
|
||||
return file_source_;
|
||||
// if (samples_ > 0)
|
||||
// {
|
||||
// return valve_;
|
||||
// }
|
||||
// if (enable_throttle_control_ == true)
|
||||
// {
|
||||
// return throttle_;
|
||||
// }
|
||||
// return file_source_;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user