From b8eb8d2780a734679e684a011215bef6d92f2b40 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Thu, 26 Aug 2021 18:02:40 +0200 Subject: [PATCH] reset number of dest in eiger server start up --- .../eigerDetectorServer/slsDetectorFunctionList.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/slsDetectorServers/eigerDetectorServer/slsDetectorFunctionList.c b/slsDetectorServers/eigerDetectorServer/slsDetectorFunctionList.c index 3c94dd281..2acc9d5e9 100644 --- a/slsDetectorServers/eigerDetectorServer/slsDetectorFunctionList.c +++ b/slsDetectorServers/eigerDetectorServer/slsDetectorFunctionList.c @@ -739,10 +739,16 @@ void setupDetector() { ("Module: %s %s %s\n", (top ? "TOP" : "BOTTOM"), (master ? "MASTER" : "SLAVE"), (normal ? "NORMAL" : "SPECIAL"))); + if (setNumberofDestinations(numUdpDestinations) == FAIL) { + initError = FAIL; + strcpy(initErrorMessage, "Could not set number of udp destinations\n"); + LOG(logERROR, (initErrorMessage)); + } + // client first connect (from shm) will activate if (setActivate(0) == FAIL) { initError = FAIL; - sprintf(initErrorMessage, "Could not deactivate\n"); + strcpy(initErrorMessage, "Could not deactivate\n"); LOG(logERROR, (initErrorMessage)); } LOG(logDEBUG1, ("Setup detector done\n\n"));