Change a bit pi4 freq/2 method
This commit is contained in:
parent
e48ebd5b23
commit
7f6f1be34e
1 changed files with 8 additions and 2 deletions
10
src/gpio.cpp
10
src/gpio.cpp
|
@ -390,11 +390,17 @@ int clkgpio::SetCenterFrequency(uint64_t Frequency, int Bandwidth)
|
||||||
{
|
{
|
||||||
//Choose best PLLDiv and Div
|
//Choose best PLLDiv and Div
|
||||||
|
|
||||||
ComputeBestLO(Frequency, Bandwidth); //FixeDivider update
|
|
||||||
if(pi_is_2711)
|
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)
|
if(PllFixDivider==1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue