dont usleep if no transmission delay (#1100)

This commit is contained in:
2025-02-18 11:10:26 +01:00
committed by GitHub
parent bf82aeee8d
commit 7c48ae9a49
2 changed files with 4 additions and 2 deletions

View File

@ -1927,7 +1927,8 @@ void *start_timer(void *arg) {
getNextFrameNumber(&frameNr);
int iRxEntry = firstDest;
for (int iframes = 0; iframes != numFrames; ++iframes) {
usleep(transmissionDelayUs);
if (transmissionDelayUs)
usleep(transmissionDelayUs);
// check if manual stop
if (sharedMemory_getStop() == 1) {