mythen3: bug fix detector type

This commit is contained in:
maliakal_d 2020-01-20 11:32:02 +01:00
parent 66b837eb59
commit 3c891495db
3 changed files with 2 additions and 2 deletions

View File

@ -1067,7 +1067,7 @@ int checkDetectorType() {
return -1;
}
int type = atoi(buffer);
if (type > TYPE_TOLERANCE) {
if (type > TYPE_NO_MODULE_STARTING_VAL) {
FILE_LOG(logERROR, ("No Module attached! Expected %d for Mythen, got %d\n", TYPE_MYTHEN3_MODULE_VAL, type));
return -2;
}

View File

@ -9,4 +9,4 @@
#define APIJUNGFRAU 0x191127
#define APICTB 0x191210
#define APIEIGER 0x200110
#define APIMYTHEN3 0x200114
#define APIMYTHEN3 0x200120