Skip to content
Snippets Groups Projects
Commit db7145a1 authored by zimoch's avatar zimoch
Browse files

call register function only if loading a dbd

parent 04a0ab1c
No related branches found
No related tags found
1 merge request!7Submodule merge
......@@ -113,15 +113,15 @@ int require(char* lib, char* version)
return ERROR;
}
printf("%s loaded\n", dbdname);
}
#ifndef BASE_VERSION
{
char initfunc[256];
sprintf (initfunc, "%s_registerRecordDeviceDriver", lib);
iocshCmd (initfunc);
}
{
char initfunc[256];
sprintf (initfunc, "%s_registerRecordDeviceDriver", lib);
iocshCmd (initfunc);
}
#endif
}
if (loaded) printf("%s version is %s\n", lib, loaded);
return OK;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment