gotthard2 bug fix: no module attached

This commit is contained in:
maliakal_d 2020-01-20 14:42:06 +01:00
parent 6cfd0f8962
commit 23dffa47df

View File

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