Merge pull request #210 from slsdetectorgroup/bugfcloseserver

Bugfcloseserver
This commit is contained in:
Dhanya Thattil 2020-10-27 18:18:14 +01:00 committed by GitHub
commit 07cc28f91b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 2 deletions

View File

@ -1766,6 +1766,7 @@ int checkDetectorType() {
char buffer[MAX_STR_LENGTH]; char buffer[MAX_STR_LENGTH];
memset(buffer, 0, sizeof(buffer)); memset(buffer, 0, sizeof(buffer));
fread(buffer, MAX_STR_LENGTH, sizeof(char), fd); fread(buffer, MAX_STR_LENGTH, sizeof(char), fd);
fclose(fd);
if (strlen(buffer) == 0) { if (strlen(buffer) == 0) {
LOG(logERROR, LOG(logERROR,
("Could not read file %s to get type of the module attached\n", ("Could not read file %s to get type of the module attached\n",

View File

@ -1976,6 +1976,7 @@ int checkDetectorType() {
char buffer[MAX_STR_LENGTH]; char buffer[MAX_STR_LENGTH];
memset(buffer, 0, sizeof(buffer)); memset(buffer, 0, sizeof(buffer));
fread(buffer, MAX_STR_LENGTH, sizeof(char), fd); fread(buffer, MAX_STR_LENGTH, sizeof(char), fd);
fclose(fd);
if (strlen(buffer) == 0) { if (strlen(buffer) == 0) {
LOG(logERROR, LOG(logERROR,
("Could not read file %s to get type of the module attached\n", ("Could not read file %s to get type of the module attached\n",

View File

@ -6,7 +6,7 @@
#define APIEIGER 0x201009 #define APIEIGER 0x201009
#define APICTB 0x201016 #define APICTB 0x201016
#define APIGOTTHARD 0x201016 #define APIGOTTHARD 0x201016
#define APIGOTTHARD2 0x201016
#define APIJUNGFRAU 0x201016 #define APIJUNGFRAU 0x201016
#define APIMOENCH 0x201013 #define APIMOENCH 0x201013
#define APIMYTHEN3 0x201026 #define APIMYTHEN3 0x201027
#define APIGOTTHARD2 0x201027