From 93990d78520848d00e586d6bae10048c36d2ea89 Mon Sep 17 00:00:00 2001 From: Paul David Date: Mon, 3 Oct 2016 11:11:19 -0700 Subject: rfnoc: Wrong bit locations on sr_error_policy were being set --- host/lib/rfnoc/sink_block_ctrl_base.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'host/lib/rfnoc/sink_block_ctrl_base.cpp') 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") { -- cgit v1.2.3