computeCI(): Constify read-only variable

Change-Id: Ia157b970db92eef252c3657b35607307b7ebf988
This commit is contained in:
Pau Espin 2021-09-01 20:10:04 +02:00
parent 7f696801ae
commit cdd77a447d
1 changed files with 1 additions and 3 deletions

View File

@ -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;