From 7f6f1be34e3499d45caa4abebdda6d2e64be9756 Mon Sep 17 00:00:00 2001 From: F5OEO Date: Thu, 23 Jul 2020 14:11:44 +0100 Subject: [PATCH] Change a bit pi4 freq/2 method --- src/gpio.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/gpio.cpp b/src/gpio.cpp index 1c8af12..a070d29 100644 --- a/src/gpio.cpp +++ b/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) {