diff options
author | Martin Braun <martin.braun@ettus.com> | 2020-05-04 06:51:53 -0700 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-05-05 14:42:29 -0500 |
commit | 4e775027871a7676bb49076cf56638aef2529bfe (patch) | |
tree | 6a71af7132142967f32638e30974ec8c7816b368 /host/python/pyuhd.cpp | |
parent | e31b16a07c7f03bc244e63aecc5cad41a6339799 (diff) | |
download | uhd-4e775027871a7676bb49076cf56638aef2529bfe.tar.gz uhd-4e775027871a7676bb49076cf56638aef2529bfe.tar.bz2 uhd-4e775027871a7676bb49076cf56638aef2529bfe.zip |
cores: Fix rx_vita_core_3000 assertion error in issue_stream_cmd()
The current code had an assertion
UHD_ASSERT_THROW(stream_cmd.num_samps <= 0x0fffffff);
which would check that num_samps in a stream command don't exceed the
counter depth in the FPGA. However, this is only relevant if the stream
command is not "continuous" or "stop".
num_samps could be unitialized, and randomly have a value larger than
the maximum, and the assertion could trigger even though the value in
num_samps is irrelevant.
The new assertion checks for the correct case, and has a more verbose
error message.
Diffstat (limited to 'host/python/pyuhd.cpp')
0 files changed, 0 insertions, 0 deletions