gotthard2 on chip dacs: -1 should set for all chips

This commit is contained in:
maliakal_d 2019-11-08 17:20:47 +01:00
parent 03ec2c53ab
commit aaeaeab576
2 changed files with 6 additions and 0 deletions

View File

@ -515,6 +515,12 @@ int setOnChipDAC(enum ONCHIP_DACINDEX ind, int chipIndex, int val) {
return FAIL;
}
onChipdacValues[ind][chipIndex + 1] = val;
if (chipIndex == -1) {
int i;
for (i = 1; i < NCHIP + 1; ++i) {
onChipdacValues[ind][i] = val;
}
}
return OK;
}