From c4c3b8d6b7ceabb66386c7db8d170e9a5504746b Mon Sep 17 00:00:00 2001 From: sugandhagupta Date: Tue, 6 Jun 2017 16:03:49 -0700 Subject: mpmd: property tree fixes for multi_usrp, set_freq fixes --- host/lib/usrp/mpmd/mpmd_impl.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'host/lib/usrp/mpmd') diff --git a/host/lib/usrp/mpmd/mpmd_impl.cpp b/host/lib/usrp/mpmd/mpmd_impl.cpp index 8ae7d79d7..23a90976c 100644 --- a/host/lib/usrp/mpmd/mpmd_impl.cpp +++ b/host/lib/usrp/mpmd/mpmd_impl.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -93,6 +94,21 @@ namespace { ); }) ; + tree->create( + mb_path / "sensors/ref_locked") + .set_publisher([](){ + return sensor_value_t ( + "Ref", true, "locked", "unlocked" // FIXME: Remove hardcoded "true" + ); + }) + ; + tree->create( + mb_path / "rx_codecs" / "A" / "gains") + .set_publisher([](){ + return 1 // FIXME: Remove hardcoding + ; + }) + ; } } -- cgit v1.2.3