1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-06-24 22:13:15 +00:00

simplify get_right_block()

This commit is contained in:
Jim Melton 2021-02-11 12:51:39 -07:00
parent e0eb4bd769
commit 4282386a30

View File

@ -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_;
}