aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/common/max287x.hpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2015-10-16 14:13:45 -0700
committerMartin Braun <martin.braun@ettus.com>2015-10-16 14:13:45 -0700
commit92e34f4880ba033ea83409fd3cd5166ecfeba8c0 (patch)
tree01a466ab8d910d242b6d9ed411c8a5ef8a89603b /host/lib/usrp/common/max287x.hpp
parent3e973aec5b9d5d5e2b3a746843a6fc15fde79cd4 (diff)
downloaduhd-92e34f4880ba033ea83409fd3cd5166ecfeba8c0.tar.gz
uhd-92e34f4880ba033ea83409fd3cd5166ecfeba8c0.tar.bz2
uhd-92e34f4880ba033ea83409fd3cd5166ecfeba8c0.zip
max287x: assert target_freq
Diffstat (limited to 'host/lib/usrp/common/max287x.hpp')
-rw-r--r--host/lib/usrp/common/max287x.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/host/lib/usrp/common/max287x.hpp b/host/lib/usrp/common/max287x.hpp
index fe5da195c..3d43802c8 100644
--- a/host/lib/usrp/common/max287x.hpp
+++ b/host/lib/usrp/common/max287x.hpp
@@ -434,6 +434,7 @@ double max287x<max287x_regs_t>::set_frequency(
bool feedback_divided = (_regs.feedback_select == max287x_regs_t::FEEDBACK_SELECT_DIVIDED);
//increase RF divider until acceptable VCO frequency (MIN freq for MAX287x VCO is 3GHz)
+ UHD_ASSERT_THROW(target_freq > 0);
double vco_freq = target_freq;
while (vco_freq < MIN_VCO_FREQ)
{