From d431443ddab8ee7394b5b9cc92f863df19eadf94 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil <33750417+thattil@users.noreply.github.com> Date: Tue, 29 Nov 2022 16:28:24 +0100 Subject: [PATCH] allowing jungfrau to continue with just a waning if detid.txt file not found (#589) --- slsDetectorServers/slsDetectorServer/src/common.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/slsDetectorServers/slsDetectorServer/src/common.c b/slsDetectorServers/slsDetectorServer/src/common.c index 0d036eef6..eca942733 100644 --- a/slsDetectorServers/slsDetectorServer/src/common.c +++ b/slsDetectorServers/slsDetectorServer/src/common.c @@ -224,10 +224,16 @@ int getModuleIdInFile(int *ret, char *mess, char *fileName) { // open id file FILE *fd = fopen(fname, "r"); 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; strcpy(mess, "Could not find detid file\n"); LOG(logERROR, ("%s\n\n", mess)); return -1; +#endif } LOG(logINFOBLUE, ("Reading det id file %s\n", fileName));