mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 23:10:02 +02:00
jungfrau allow no config files to assume v1.0
This commit is contained in:
parent
799906a33a
commit
7c172898d9
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user