aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2021-09-01 20:10:04 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2021-09-01 20:10:04 +0200
commitcdd77a447d21302b0a120de4eedcb1e19ca1300c (patch)
treee5bd2726ccc7c0d29fc36814c341d694574d946d
parent7f696801ae98f4ff916c7ae7aa24b3d1ec738122 (diff)
computeCI(): Constify read-only variable
-rw-r--r--Transceiver52M/sigProcLib.cpp4
1 files changed, 1 insertions, 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;