From 23dffa47df0f5461066beadc2d5005c2e83bcb57 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Mon, 20 Jan 2020 14:42:06 +0100 Subject: [PATCH] gotthard2 bug fix: no module attached --- .../gotthard2DetectorServer/slsDetectorFunctionList.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slsDetectorServers/gotthard2DetectorServer/slsDetectorFunctionList.c b/slsDetectorServers/gotthard2DetectorServer/slsDetectorFunctionList.c index c5af818b6..ccc6f47f6 100644 --- a/slsDetectorServers/gotthard2DetectorServer/slsDetectorFunctionList.c +++ b/slsDetectorServers/gotthard2DetectorServer/slsDetectorFunctionList.c @@ -1193,7 +1193,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 Gotthard2, got %d\n", TYPE_GOTTHARD2_MODULE_VAL, type)); return -2; }