mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-09 19:40:42 +02:00
WIP
This commit is contained in:
parent
24af0ee578
commit
3775ff302e
@ -144,10 +144,8 @@ int Feb_Control_Init(int master, int normal, int module_num) {
|
|||||||
|
|
||||||
unsigned int nfebs = 0;
|
unsigned int nfebs = 0;
|
||||||
unsigned int *feb_list = malloc(moduleSize * 4 * sizeof(unsigned int));
|
unsigned int *feb_list = malloc(moduleSize * 4 * sizeof(unsigned int));
|
||||||
for (unsigned int i = 1; i < moduleSize; i++) {
|
feb_list[nfebs++] = Module_GetRightAddress(&modules[1]);
|
||||||
feb_list[nfebs++] = Module_GetTopRightAddress(&modules[i]);
|
feb_list[nfebs++] = Module_GetLeftAddress(&modules[1]);
|
||||||
feb_list[nfebs++] = Module_GetTopLeftAddress(&modules[i]);
|
|
||||||
}
|
|
||||||
|
|
||||||
Feb_Interface_SendCompleteList(nfebs, feb_list);
|
Feb_Interface_SendCompleteList(nfebs, feb_list);
|
||||||
free(feb_list);
|
free(feb_list);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user