aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard/magnesium
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-08-03 15:14:45 -0700
committerMartin Braun <martin.braun@ettus.com>2018-08-03 16:20:23 -0700
commit65bd6aebeb9a0e26e02b1f7141abd9dec570e462 (patch)
tree1c812b0ab928b902f99bfe66c9cb83b2b645debf /host/lib/usrp/dboard/magnesium
parent22286176373246c53953ac6a1b2caf0dab879077 (diff)
downloaduhd-65bd6aebeb9a0e26e02b1f7141abd9dec570e462.tar.gz
uhd-65bd6aebeb9a0e26e02b1f7141abd9dec570e462.tar.bz2
uhd-65bd6aebeb9a0e26e02b1f7141abd9dec570e462.zip
fixup! mpm: mg: add set_master_clock_rate member
Diffstat (limited to 'host/lib/usrp/dboard/magnesium')
-rw-r--r--host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp b/host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp
index 977d0bcab..8fd82cbc8 100644
--- a/host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp
+++ b/host/lib/usrp/dboard/magnesium/magnesium_ad9371_iface.cpp
@@ -74,10 +74,10 @@ double magnesium_ad9371_iface::set_gain(
double magnesium_ad9371_iface::set_master_clock_rate(
const double freq
) {
- auto actual_freq = request<double>("set_master_clock_rate", freq);
+ const auto actual_freq = request<double>("set_master_clock_rate", freq);
UHD_LOG_TRACE(_log_prefix,
_rpc_prefix << "set_master_clock_rate returned successfully");
- return freq;
+ return actual_freq;
}
double magnesium_ad9371_iface::set_bandwidth(const double bandwidth, const size_t chan, const direction_t dir)