diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-08-01 17:13:41 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 11:49:36 -0800 |
commit | 7bac67af0898486745ea2f0590e80f5e614196af (patch) | |
tree | b11925c15d84d455199c65b59e1383969aa9d625 /host/lib/rfnoc/rfnoc_graph.cpp | |
parent | bddaac5e2678b190719228fc26877af5a2ef1910 (diff) | |
download | uhd-7bac67af0898486745ea2f0590e80f5e614196af.tar.gz uhd-7bac67af0898486745ea2f0590e80f5e614196af.tar.bz2 uhd-7bac67af0898486745ea2f0590e80f5e614196af.zip |
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.
Diffstat (limited to 'host/lib/rfnoc/rfnoc_graph.cpp')
-rw-r--r-- | host/lib/rfnoc/rfnoc_graph.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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) { |