mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-06 18:10:40 +02:00
wip
This commit is contained in:
parent
4e00286b35
commit
60db0e9648
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user