From 7bac67af0898486745ea2f0590e80f5e614196af Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 1 Aug 2019 17:13:41 -0700 Subject: rfnoc: client0: Change flush-all-blocks to not throw on timeout The convenience call that flushed all the blocks would throw during timeout. Now, it returns a bool whether or not the flush was successful. --- host/lib/rfnoc/rfnoc_graph.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'host/lib/rfnoc/rfnoc_graph.cpp') diff --git a/host/lib/rfnoc/rfnoc_graph.cpp b/host/lib/rfnoc/rfnoc_graph.cpp index 795ffd289..f820a6960 100644 --- a/host/lib/rfnoc/rfnoc_graph.cpp +++ b/host/lib/rfnoc/rfnoc_graph.cpp @@ -663,7 +663,9 @@ private: std::string("Flushing and resetting blocks on mboard ") + std::to_string(mb_idx)); - mb_cz->complete_flush_all_blocks(); + if (!mb_cz->complete_flush_all_blocks()) { + UHD_LOG_WARNING(LOG_ID, "One or more blocks timed out during flush!"); + } // Reset for (size_t portno = 0; portno < num_blocks; ++portno) { -- cgit v1.2.3