diff options
author | michael-west <michael.west@ettus.com> | 2020-12-03 13:02:37 -0800 |
---|---|---|
committer | michael-west <michael.west@ettus.com> | 2020-12-10 16:16:02 -0800 |
commit | 1fa617045c7c3ffb345ea595e4ca040219df9fc8 (patch) | |
tree | c6be90975ac345b96a293f39686cb9e9de1535e4 /host/lib/rfnoc | |
parent | 71137999430afaca18bfff179e6a3c4b0276d54c (diff) | |
download | uhd-1fa617045c7c3ffb345ea595e4ca040219df9fc8.tar.gz uhd-1fa617045c7c3ffb345ea595e4ca040219df9fc8.tar.bz2 uhd-1fa617045c7c3ffb345ea595e4ca040219df9fc8.zip |
RFNoC: Demoted zero sample error to warning
Requesting zero samples was resulting in an error and causing applications
to crash. This was a change frome previous versions of UHD. Demoted to
warning so applications continue as they did before.
Signed-off-by: Michael West <michael.west@ettus.com>
Diffstat (limited to 'host/lib/rfnoc')
-rw-r--r-- | host/lib/rfnoc/radio_control_impl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/host/lib/rfnoc/radio_control_impl.cpp b/host/lib/rfnoc/radio_control_impl.cpp index 61937e080..f9347b9e7 100644 --- a/host/lib/rfnoc/radio_control_impl.cpp +++ b/host/lib/rfnoc/radio_control_impl.cpp @@ -888,8 +888,9 @@ void radio_control_impl::issue_stream_cmd( if (cmd_bits == regmap::RX_CMD_FINITE) { if (stream_cmd.num_samps == 0) { - throw uhd::value_error("When requesting a finite number of samples, the " - "number of samples must be greater than zero."); + RFNOC_LOG_WARNING("Ignoring stream command for finite acquisition of " + "zero samples"); + return; } // FIXME: The num words might be different from num_samps, check the // radio width |