diff options
author | Martin Braun <martin.braun@ettus.com> | 2020-03-02 15:25:13 -0800 |
---|---|---|
committer | atrnati <54334261+atrnati@users.noreply.github.com> | 2020-03-03 08:51:32 -0600 |
commit | 876d4150aa3da531ddd687b48afada6e43f79146 (patch) | |
tree | fd72a71419f4cd800d4e500cfcaded4dfc8dc367 /host/lib/usrp/x300/x300_prop_tree.cpp | |
parent | 1393553d623bdf4ba40d5435c9719b6ce990d9ac (diff) | |
download | uhd-876d4150aa3da531ddd687b48afada6e43f79146.tar.gz uhd-876d4150aa3da531ddd687b48afada6e43f79146.tar.bz2 uhd-876d4150aa3da531ddd687b48afada6e43f79146.zip |
uhd: Apply clang-format against all .cpp and .hpp files in host/
Note: template_lvbitx.{cpp,hpp} need to be excluded from the list of
files that clang-format gets applied against.
Diffstat (limited to 'host/lib/usrp/x300/x300_prop_tree.cpp')
-rw-r--r-- | host/lib/usrp/x300/x300_prop_tree.cpp | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/host/lib/usrp/x300/x300_prop_tree.cpp b/host/lib/usrp/x300/x300_prop_tree.cpp index 21597beea..4f40f3514 100644 --- a/host/lib/usrp/x300/x300_prop_tree.cpp +++ b/host/lib/usrp/x300/x300_prop_tree.cpp @@ -14,8 +14,7 @@ using namespace uhd::rfnoc; namespace uhd { namespace usrp { namespace x300 { -void init_prop_tree( - const size_t mb_idx, x300_mb_controller* mbc, property_tree::sptr pt) +void init_prop_tree(const size_t mb_idx, x300_mb_controller* mbc, property_tree::sptr pt) { const fs_path mb_path = fs_path("/mboards") / mb_idx; try { @@ -42,17 +41,15 @@ void init_prop_tree( //////////////////////////////////////////////////////////////////// pt->create<std::string>(mb_path / "time_source" / "value") .set(mbc->get_time_source()) - .add_coerced_subscriber([mbc](const std::string& time_source) { - mbc->set_time_source(time_source); - }); + .add_coerced_subscriber( + [mbc](const std::string& time_source) { mbc->set_time_source(time_source); }); pt->create<std::vector<std::string>>(mb_path / "time_source" / "options") .set(mbc->get_time_sources()); // setup the time output, default to ON pt->create<bool>(mb_path / "time_source" / "output") - .add_coerced_subscriber([mbc](const bool time_output) { - mbc->set_time_source_out(time_output); - }) + .add_coerced_subscriber( + [mbc](const bool time_output) { mbc->set_time_source_out(time_output); }) .set(true); //////////////////////////////////////////////////////////////////// @@ -69,9 +66,8 @@ void init_prop_tree( // setup external reference options. default to 10 MHz input reference pt->create<std::string>(mb_path / "clock_source" / "external"); - pt - ->create<std::vector<double>>( - mb_path / "clock_source" / "external" / "freq" / "options") + pt->create<std::vector<double>>( + mb_path / "clock_source" / "external" / "freq" / "options") .set(EXTERNAL_FREQ_OPTIONS); pt->create<double>(mb_path / "clock_source" / "external" / "value") .set(mbc->get_clock_ctrl()->get_sysref_clock_rate()) |