aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/common
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/usrp/common')
-rw-r--r--host/lib/usrp/common/lmx2592.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/common/lmx2592.cpp b/host/lib/usrp/common/lmx2592.cpp
index 4a6cef887..dedc56626 100644
--- a/host/lib/usrp/common/lmx2592.cpp
+++ b/host/lib/usrp/common/lmx2592.cpp
@@ -200,7 +200,7 @@ public:
const int min_n_divider = LMX2592_MIN_N_DIV[_regs.mash_order];
double pfd_freq = input_freq / _regs.pll_r;
- while (pfd_freq * (prescaler + min_n_divider) / vco_multiplier > core_vco_freq) {
+ while (pfd_freq * (prescaler * min_n_divider) / vco_multiplier > core_vco_freq) {
_regs.pll_r++;
pfd_freq = input_freq / _regs.pll_r;
}