From 60db0e96485a1e2f024d65234f4dee6e8b7c9ba5 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Tue, 31 Aug 2021 08:38:13 +0200 Subject: [PATCH] wip --- .../jungfrauDetectorServer/slsDetectorFunctionList.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/slsDetectorServers/jungfrauDetectorServer/slsDetectorFunctionList.c b/slsDetectorServers/jungfrauDetectorServer/slsDetectorFunctionList.c index 10745239e..b68e3f43f 100644 --- a/slsDetectorServers/jungfrauDetectorServer/slsDetectorFunctionList.c +++ b/slsDetectorServers/jungfrauDetectorServer/slsDetectorFunctionList.c @@ -2388,6 +2388,7 @@ void *start_timer(void *arg) { getNextFrameNumber(&frameNr); int iRxEntry = 0; for (int iframes = 0; iframes != numFrames; ++iframes) { + LOG(logINFOBLUE, ("iRxEntry:%d\n", iRxEntry)); usleep(transmissionDelayUs); // check if manual stop @@ -2462,10 +2463,6 @@ void *start_timer(void *arg) { LOG(logDEBUG1, ("Sent packet: %d [interface 1]\n", pnum)); } } - ++iRxEntry; - if (iRxEntry == numUdpDestinations) { - iRxEntry = 0; - } } LOG(logINFO, ("Sent frame: %d\n", iframes)); clock_gettime(CLOCK_REALTIME, &end); @@ -2478,6 +2475,10 @@ void *start_timer(void *arg) { usleep((periodNs - timeNs) / 1000); } } + ++iRxEntry; + if (iRxEntry == numUdpDestinations) { + iRxEntry = 0; + } } setNextFrameNumber(frameNr + numFrames); }