diff --git a/slsDetectorServers/eigerDetectorServer/FebControl.c b/slsDetectorServers/eigerDetectorServer/FebControl.c index bca7eb39c..6a57a5e8d 100644 --- a/slsDetectorServers/eigerDetectorServer/FebControl.c +++ b/slsDetectorServers/eigerDetectorServer/FebControl.c @@ -118,7 +118,7 @@ void Feb_Control_FebControl() { int Feb_Control_Init(int master, int normal, int module_num) { Feb_control_master = master; Feb_control_normal = normal; - Feb_Control_AddModule(); + Module_Module(&module); Feb_Interface_SetAddress(Module_GetRightAddress(&module), Module_GetLeftAddress(&module)); if (Feb_Control_activated) { @@ -186,17 +186,6 @@ void Feb_Control_CloseSerialCommunication() { close(Feb_Control_hv_fd); } -void Feb_Control_AddModule() { - struct Module mod, *m; - m = &mod; - Module_Module(m); - - LOG(logDEBUG1, ("\tAdding half module number %d with " - "top base address: %d\n", - m->module_number, Module_GetBaseAddress(m))); - module = mod; -} - int Feb_Control_CheckSetup(int master) { LOG(logDEBUG1, ("Checking Set up\n")); diff --git a/slsDetectorServers/eigerDetectorServer/FebControl.h b/slsDetectorServers/eigerDetectorServer/FebControl.h index 317773d25..bf2eae136 100644 --- a/slsDetectorServers/eigerDetectorServer/FebControl.h +++ b/slsDetectorServers/eigerDetectorServer/FebControl.h @@ -28,7 +28,6 @@ void Feb_Control_FebControl(); int Feb_Control_Init(int master, int normal, int module_num); int Feb_Control_OpenSerialCommunication(); void Feb_Control_CloseSerialCommunication(); -void Feb_Control_AddModule(); int Feb_Control_CheckSetup(); unsigned int Feb_Control_AddressToAll(); int Feb_Control_SetCommandRegister(unsigned int cmd);