From cdd77a447d21302b0a120de4eedcb1e19ca1300c Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Wed, 1 Sep 2021 20:10:04 +0200 Subject: computeCI(): Constify read-only variable Change-Id: Ia157b970db92eef252c3657b35607307b7ebf988 --- Transceiver52M/sigProcLib.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Transceiver52M/sigProcLib.cpp b/Transceiver52M/sigProcLib.cpp index 1a72e00..b3e3969 100644 --- a/Transceiver52M/sigProcLib.cpp +++ b/Transceiver52M/sigProcLib.cpp @@ -1466,10 +1466,8 @@ static float computeCI(const signalVector *burst, const CorrelationSequence *syn { const int N = sync->sequence->size(); float S, C; - int ps; - /* Integer position where the sequence starts */ - ps = start + 1 - N + (int)roundf(toa); + const int ps = start + 1 - N + (int)roundf(toa); /* Estimate Signal power */ S = 0.0f; -- cgit v1.2.3