aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorPaul David <paul.david@ettus.com>2016-10-03 11:11:19 -0700
committerJonathon Pendlum <jon.pendlum@gmail.com>2016-10-03 13:44:56 -0500
commit93990d78520848d00e586d6bae10048c36d2ea89 (patch)
treedff804f5e8fa0ff9c13ccfb8c6b55381856b6867 /host/lib
parent70cd8780a512ce7892b598edeff07523f1293055 (diff)
downloaduhd-93990d78520848d00e586d6bae10048c36d2ea89.tar.gz
uhd-93990d78520848d00e586d6bae10048c36d2ea89.tar.bz2
uhd-93990d78520848d00e586d6bae10048c36d2ea89.zip
rfnoc: Wrong bit locations on sr_error_policy were being set
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/rfnoc/sink_block_ctrl_base.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/host/lib/rfnoc/sink_block_ctrl_base.cpp b/host/lib/rfnoc/sink_block_ctrl_base.cpp
index 56755a269..e4107c0b8 100644
--- a/host/lib/rfnoc/sink_block_ctrl_base.cpp
+++ b/host/lib/rfnoc/sink_block_ctrl_base.cpp
@@ -85,11 +85,15 @@ void sink_block_ctrl_base::set_error_policy(
) {
if (policy == "next_packet")
{
- sr_write(SR_ERROR_POLICY, (1 << 1) | 1);
+ sr_write(SR_ERROR_POLICY, (1 << 2) | 1);
}
else if (policy == "next_burst")
{
- sr_write(SR_ERROR_POLICY, (1 << 2) | 1);
+ sr_write(SR_ERROR_POLICY, (1 << 3) | 1);
+ }
+ else if (policy == "continue")
+ {
+ sr_write(SR_ERROR_POLICY, (1 << 1) | 1);
}
else if (policy == "wait")
{