aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/x300/x300_dboard_iface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/usrp/x300/x300_dboard_iface.cpp')
-rw-r--r--host/lib/usrp/x300/x300_dboard_iface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/x300/x300_dboard_iface.cpp b/host/lib/usrp/x300/x300_dboard_iface.cpp
index 3fc5921c6..6986ee8ab 100644
--- a/host/lib/usrp/x300/x300_dboard_iface.cpp
+++ b/host/lib/usrp/x300/x300_dboard_iface.cpp
@@ -56,7 +56,7 @@ void x300_dboard_iface::set_clock_rate(unit_t unit, double rate)
if (unit == UNIT_BOTH) throw uhd::runtime_error("UNIT_BOTH not supported.");
// Just return if the requested rate is already set
- if (std::fabs(_clock_rates[unit] - rate) < std::numeric_limits<double>::epsilon())
+ if (std::abs(_clock_rates[unit] - rate) < std::numeric_limits<double>::epsilon())
return;
switch(unit)