From 98209df92ea2a6abf6ed41af03bc3909b8e152b9 Mon Sep 17 00:00:00 2001 From: Ciro Nishiguchi Date: Tue, 27 Aug 2019 16:19:15 -0500 Subject: streamer: Add option to ignore sequence errors Add template parameter to ignore sequence errors, used for testing. --- host/lib/include/uhdlib/transport/get_aligned_buffs.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'host/lib/include/uhdlib/transport/get_aligned_buffs.hpp') diff --git a/host/lib/include/uhdlib/transport/get_aligned_buffs.hpp b/host/lib/include/uhdlib/transport/get_aligned_buffs.hpp index 662be6d2d..d0f5682ca 100644 --- a/host/lib/include/uhdlib/transport/get_aligned_buffs.hpp +++ b/host/lib/include/uhdlib/transport/get_aligned_buffs.hpp @@ -27,7 +27,7 @@ constexpr size_t ALIGNMENT_FAILURE_THRESHOLD = 1000; * match those of other channels due to dropped packets. Packets that do not * have a tsf are not checked for alignment and never dropped. */ -template +template class get_aligned_buffs { public: @@ -144,7 +144,8 @@ public: // If this packet had a sequence error, stop to return the error. // Keep the packet for the next call to get_aligned_buffs. - if (seq_error) { + if (seq_error && !ignore_seq_err) { + UHD_LOG_FASTPATH("D"); return SEQUENCE_ERROR; } } -- cgit v1.2.3