mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-05-02 02:40:04 +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;
|
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
|
// open config file
|
||||||
FILE *fd = fopen(fname, "r");
|
FILE *fd = fopen(fname, "r");
|
||||||
if (fd == NULL) {
|
if (fd == NULL) {
|
||||||
|
|
||||||
sprintf(initErrorMessage,
|
sprintf(initErrorMessage,
|
||||||
"Could not open on-board detector server config file [%s].\n",
|
"Could not open on-board detector server config file [%s].\n",
|
||||||
CONFIG_FILE);
|
CONFIG_FILE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user