Prevent icepll from generating settings below lower bound

This commit is contained in:
Olof Kindgren 2020-10-02 13:28:01 +02:00
parent da52117ccd
commit 2b57ea2194
1 changed files with 1 additions and 1 deletions

View File

@ -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;