diff --git a/slsDetectorServers/jungfrauDetectorServer/slsDetectorFunctionList.c b/slsDetectorServers/jungfrauDetectorServer/slsDetectorFunctionList.c index ba07af16d..5116f0529 100644 --- a/slsDetectorServers/jungfrauDetectorServer/slsDetectorFunctionList.c +++ b/slsDetectorServers/jungfrauDetectorServer/slsDetectorFunctionList.c @@ -620,9 +620,16 @@ int readConfigFile() { return FAIL; } + // file doesnt exist (give warning and assume chipv1.0) + if (access(fname, F_OK) != 0) { + LOG(logWARNING, ("Could not find config file. Assuming chipv1.0\n")); + return OK; + } + // open config file FILE *fd = fopen(fname, "r"); if (fd == NULL) { + sprintf(initErrorMessage, "Could not open on-board detector server config file [%s].\n", CONFIG_FILE);