kopia lustrzana https://github.com/F5OEO/librpitx
Change a bit pi4 freq/2 method
rodzic
e48ebd5b23
commit
7f6f1be34e
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
|
||||
|
||||
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)
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue