mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-26 08:10:02 +02:00
allowing jungfrau to continue with just a waning if detid.txt file not found (#589)
This commit is contained in:
parent
34acf553a1
commit
d431443dda
@ -224,10 +224,16 @@ int getModuleIdInFile(int *ret, char *mess, char *fileName) {
|
|||||||
// open id file
|
// open id file
|
||||||
FILE *fd = fopen(fname, "r");
|
FILE *fd = fopen(fname, "r");
|
||||||
if (fd == NULL) {
|
if (fd == NULL) {
|
||||||
|
#ifdef JUNGFRAUD
|
||||||
|
*ret = OK;
|
||||||
|
LOG(logWARNING, ("Could not find detid_jungfrau.txt to set module id\n"));
|
||||||
|
return 0;
|
||||||
|
#else
|
||||||
*ret = FAIL;
|
*ret = FAIL;
|
||||||
strcpy(mess, "Could not find detid file\n");
|
strcpy(mess, "Could not find detid file\n");
|
||||||
LOG(logERROR, ("%s\n\n", mess));
|
LOG(logERROR, ("%s\n\n", mess));
|
||||||
return -1;
|
return -1;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
LOG(logINFOBLUE, ("Reading det id file %s\n", fileName));
|
LOG(logINFOBLUE, ("Reading det id file %s\n", fileName));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user