From 2b57ea2194dfb9bd9f4ec289681c49990ed9b385 Mon Sep 17 00:00:00 2001 From: Olof Kindgren Date: Fri, 2 Oct 2020 13:28:01 +0200 Subject: [PATCH] Prevent icepll from generating settings below lower bound --- icepll/icepll.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icepll/icepll.cc b/icepll/icepll.cc index 398b545b1d1..62f9d05cc6a 100644 --- a/icepll/icepll.cc +++ b/icepll/icepll.cc @@ -117,7 +117,7 @@ bool analyze( { double fout = f_vco * exp2(-divq); - if (fabs(fout - f_pllout) < fabs(*best_fout - f_pllout) || !found_something) { + if (((fabs(fout - f_pllout) < fabs(*best_fout - f_pllout)) && (fout >= 16.0)) || !found_something) { *best_fout = fout; *best_divr = divr; *best_divf = divf;