This commit is contained in:
maliakal_d 2020-06-15 17:13:49 +02:00
parent 6f2413fd5d
commit fb5b2133f5
2 changed files with 1 additions and 13 deletions

View File

@ -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"));

View File

@ -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);