eiger server: bug fix for saving trimbits to file, was copying from destination to source in server

This commit is contained in:
2018-05-22 10:59:04 +02:00
parent c4b8c6385f
commit e19a27bf62
3 changed files with 23 additions and 12 deletions

View File

@ -3460,8 +3460,10 @@ slsDetectorDefs::sls_detector_module *slsDetector::getModule(int imod){
}
if (dacs) {
for (int i=0; i<thisDetector->nDacs; ++i)
for (int i=0; i<thisDetector->nDacs; ++i) {
dacs[i+imod*thisDetector->nDacs]=myMod->dacs[i];
//cprintf(BLUE,"dac%d:%d\n",i, myMod->dacs[i]);
}
}
(detectorModules+imod)->gain=myMod->gain;
(detectorModules+imod)->offset=myMod->offset;