aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--host/lib/include/uhdlib/usrp/common/pwr_cal_mgr.hpp4
-rw-r--r--host/lib/usrp/common/pwr_cal_mgr.cpp5
2 files changed, 9 insertions, 0 deletions
diff --git a/host/lib/include/uhdlib/usrp/common/pwr_cal_mgr.hpp b/host/lib/include/uhdlib/usrp/common/pwr_cal_mgr.hpp
index c24e7718c..09289fb1d 100644
--- a/host/lib/include/uhdlib/usrp/common/pwr_cal_mgr.hpp
+++ b/host/lib/include/uhdlib/usrp/common/pwr_cal_mgr.hpp
@@ -134,6 +134,10 @@ public:
*/
virtual void set_tracking_mode(const tracking_mode) = 0;
+ /*! Get the current power tracking mode
+ */
+ virtual tracking_mode get_tracking_mode() = 0;
+
//! Return the currently active calibration data key
virtual std::string get_key() = 0;
diff --git a/host/lib/usrp/common/pwr_cal_mgr.cpp b/host/lib/usrp/common/pwr_cal_mgr.cpp
index 7fb569e83..2f5f2e87a 100644
--- a/host/lib/usrp/common/pwr_cal_mgr.cpp
+++ b/host/lib/usrp/common/pwr_cal_mgr.cpp
@@ -185,6 +185,11 @@ public:
_mode = mode;
}
+ tracking_mode get_tracking_mode() override
+ {
+ return _mode;
+ }
+
void set_serial(const std::string& serial) override
{
if (serial == _serial || serial.empty()) {