aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp_e/clock_ctrl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/usrp/usrp_e/clock_ctrl.cpp')
-rw-r--r--host/lib/usrp/usrp_e/clock_ctrl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp_e/clock_ctrl.cpp b/host/lib/usrp/usrp_e/clock_ctrl.cpp
index 36799ef63..bf38db8a6 100644
--- a/host/lib/usrp/usrp_e/clock_ctrl.cpp
+++ b/host/lib/usrp/usrp_e/clock_ctrl.cpp
@@ -30,8 +30,8 @@ using namespace uhd;
template <typename div_type> static void set_clock_divider(
size_t divider, div_type &low, div_type &high
){
- high = divider/2;
- low = divider-high;
+ high = divider/2 - 1;
+ low = divider - high - 2;
}
/***********************************************************************