From b07896b9ded74e14c315eabbf0e1fd326b9e34ed Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Thu, 26 Aug 2021 17:24:49 +0200 Subject: [PATCH] fix for num udp dest for jungfrau --- .../jungfrauDetectorServer/slsDetectorFunctionList.c | 1 + 1 file changed, 1 insertion(+) diff --git a/slsDetectorServers/jungfrauDetectorServer/slsDetectorFunctionList.c b/slsDetectorServers/jungfrauDetectorServer/slsDetectorFunctionList.c index 05da04f9b..91564a64d 100644 --- a/slsDetectorServers/jungfrauDetectorServer/slsDetectorFunctionList.c +++ b/slsDetectorServers/jungfrauDetectorServer/slsDetectorFunctionList.c @@ -1341,6 +1341,7 @@ int getNumberofDestinations(int *retval) { int setNumberofDestinations(int value) { LOG(logINFO, ("Setting number of entries to %d\n", value)); --value; + bus_w(CONTROL_REG, bus_r(CONTROL_REG) & ~CONTROL_RX_ADDTNL_ENDPTS_NUM_MSK); bus_w(CONTROL_REG, bus_r(CONTROL_REG) | ((value << CONTROL_RX_ADDTNL_ENDPTS_NUM_OFST) & CONTROL_RX_ADDTNL_ENDPTS_NUM_MSK)); return OK; }