mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-19 00:07:13 +02:00
eiger server bug fix: split quad and interruptframe into set and get to catch fails in set and when quad and interrupt subframe used together(different register values for tl and tr)
This commit is contained in:
@ -1213,11 +1213,14 @@ void Beb_SetDetectorNumber(uint32_t detid) {
|
||||
}
|
||||
|
||||
int Beb_SetQuad(int val) {
|
||||
if (val >= 0) {
|
||||
printf("Setting Quad to %d in Beb\n", val);
|
||||
Beb_quadEnable = (val == 0 ? 0 : 1);
|
||||
Beb_SetDetectorPosition(Beb_positions);
|
||||
}
|
||||
if (val < 0)
|
||||
return OK;
|
||||
printf("Setting Quad to %d in Beb\n", val);
|
||||
Beb_quadEnable = (val == 0 ? 0 : 1);
|
||||
return Beb_SetDetectorPosition(Beb_positions);
|
||||
}
|
||||
|
||||
int Beb_GetQuad() {
|
||||
return Beb_quadEnable;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user