diff options
author | Josh Blum <josh@joshknows.com> | 2010-06-23 00:16:59 +0000 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-06-23 00:16:59 +0000 |
commit | e6aed138b08100fe81355771fc62d4ff2f7556d0 (patch) | |
tree | 1e7c5ca53189eea660aa088b9d5fa523d4aba5fa | |
parent | df6cc603fd5e9dc34665385ac84b94eadf074074 (diff) | |
download | uhd-e6aed138b08100fe81355771fc62d4ff2f7556d0.tar.gz uhd-e6aed138b08100fe81355771fc62d4ff2f7556d0.tar.bz2 uhd-e6aed138b08100fe81355771fc62d4ff2f7556d0.zip |
usrp-e: clock divider calculation fix
-rw-r--r-- | host/lib/usrp/usrp_e/clock_ctrl.cpp | 4 |
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; } /*********************************************************************** |