Change a bit pi4 freq/2 method

This commit is contained in:
F5OEO 2020-07-23 14:11:44 +01:00 committed by f5oeo
parent e48ebd5b23
commit 7f6f1be34e

View file

@ -390,11 +390,17 @@ int clkgpio::SetCenterFrequency(uint64_t Frequency, int Bandwidth)
{
//Choose best PLLDiv and Div
ComputeBestLO(Frequency, Bandwidth); //FixeDivider update
if(pi_is_2711)
{
PllFixDivider=PllFixDivider/2;
ComputeBestLO(Frequency*2, Bandwidth); //FixeDivider update
//PllFixDivider=PllFixDivider/2;
}
else
{
ComputeBestLO(Frequency, Bandwidth); //FixeDivider update
}
if(PllFixDivider==1)
{