This commit is contained in:
maliakal_d 2021-08-31 08:38:13 +02:00
parent 4e00286b35
commit 60db0e9648

View File

@ -2388,6 +2388,7 @@ void *start_timer(void *arg) {
getNextFrameNumber(&frameNr); getNextFrameNumber(&frameNr);
int iRxEntry = 0; int iRxEntry = 0;
for (int iframes = 0; iframes != numFrames; ++iframes) { for (int iframes = 0; iframes != numFrames; ++iframes) {
LOG(logINFOBLUE, ("iRxEntry:%d\n", iRxEntry));
usleep(transmissionDelayUs); usleep(transmissionDelayUs);
// check if manual stop // check if manual stop
@ -2462,10 +2463,6 @@ void *start_timer(void *arg) {
LOG(logDEBUG1, ("Sent packet: %d [interface 1]\n", pnum)); LOG(logDEBUG1, ("Sent packet: %d [interface 1]\n", pnum));
} }
} }
++iRxEntry;
if (iRxEntry == numUdpDestinations) {
iRxEntry = 0;
}
} }
LOG(logINFO, ("Sent frame: %d\n", iframes)); LOG(logINFO, ("Sent frame: %d\n", iframes));
clock_gettime(CLOCK_REALTIME, &end); clock_gettime(CLOCK_REALTIME, &end);
@ -2478,6 +2475,10 @@ void *start_timer(void *arg) {
usleep((periodNs - timeNs) / 1000); usleep((periodNs - timeNs) / 1000);
} }
} }
++iRxEntry;
if (iRxEntry == numUdpDestinations) {
iRxEntry = 0;
}
} }
setNextFrameNumber(frameNr + numFrames); setNextFrameNumber(frameNr + numFrames);
} }