gotthard2: bug fix: reversed list, but gain indices not reversed

This commit is contained in:
maliakal_d 2020-07-30 15:39:26 +02:00
parent 7492f7dbfa
commit 87c33c8e81
2 changed files with 1 additions and 1 deletions

View File

@ -1818,7 +1818,7 @@ int configureASICVetoReference(int chipIndex, int *gainIndices, int *values) {
("Unknown gain index %d for channel %d\n", gainIndices[i], i));
return FAIL;
}
revValues[i] |= gainValue;
revValues[NCHAN - 1 - i] |= gainValue; // reversed list, so NCHAN - 1 - i
LOG(logDEBUG2, ("Values[%d]: 0x%x\n", i, revValues[i]));
}