mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 18:17:59 +02:00
possible fix for eiger num udp
This commit is contained in:
@ -1547,7 +1547,7 @@ int Beb_GetNumberofDestinations(int *retval) {
|
|||||||
retval1[0], retval1[1]));
|
retval1[0], retval1[1]));
|
||||||
return FAIL;
|
return FAIL;
|
||||||
}
|
}
|
||||||
*retval = retval1[0];
|
*retval = ++retval1[0];
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1571,9 +1571,10 @@ int Beb_SetNumberofDestinations(int value) {
|
|||||||
"destinations. FAIL\n"));
|
"destinations. FAIL\n"));
|
||||||
return FAIL;
|
return FAIL;
|
||||||
} else {
|
} else {
|
||||||
|
Beb_deactivated_num_destinations = value;
|
||||||
|
--value;
|
||||||
Beb_Write32(csp0base, offset[0], value);
|
Beb_Write32(csp0base, offset[0], value);
|
||||||
Beb_Write32(csp0base, offset[1], value);
|
Beb_Write32(csp0base, offset[1], value);
|
||||||
Beb_deactivated_num_destinations = value;
|
|
||||||
Beb_close(fd, csp0base);
|
Beb_close(fd, csp0base);
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user