diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-09-01 20:10:04 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-09-01 20:10:04 +0200 |
commit | cdd77a447d21302b0a120de4eedcb1e19ca1300c (patch) | |
tree | e5bd2726ccc7c0d29fc36814c341d694574d946d | |
parent | 7f696801ae98f4ff916c7ae7aa24b3d1ec738122 (diff) |
computeCI(): Constify read-only variable
Change-Id: Ia157b970db92eef252c3657b35607307b7ebf988
-rw-r--r-- | Transceiver52M/sigProcLib.cpp | 4 |
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; |