From 0949e3ae184b18fd41e9d6de84676d1bb5b2e872 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Thu, 26 Aug 2021 17:30:07 +0200 Subject: [PATCH] wip --- .../jungfrauDetectorServer/slsDetectorFunctionList.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/slsDetectorServers/jungfrauDetectorServer/slsDetectorFunctionList.c b/slsDetectorServers/jungfrauDetectorServer/slsDetectorFunctionList.c index 91564a64d..ad2452d41 100644 --- a/slsDetectorServers/jungfrauDetectorServer/slsDetectorFunctionList.c +++ b/slsDetectorServers/jungfrauDetectorServer/slsDetectorFunctionList.c @@ -1332,9 +1332,9 @@ int getNumberofUDPInterfaces() { } int getNumberofDestinations(int *retval) { - retval = (((bus_r(CONTROL_REG) & CONTROL_RX_ADDTNL_ENDPTS_NUM_MSK) >> - CONTROL_RX_ADDTNL_ENDPTS_NUM_OFST) + - 1); + *retval = (((bus_r(CONTROL_REG) & CONTROL_RX_ADDTNL_ENDPTS_NUM_MSK) >> + CONTROL_RX_ADDTNL_ENDPTS_NUM_OFST) + + 1); return OK; }