mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 03:10:02 +02:00
dont usleep if no transmission delay (#1100)
This commit is contained in:
parent
bf82aeee8d
commit
7c48ae9a49
@ -2817,6 +2817,7 @@ void *start_timer(void *arg) {
|
|||||||
getNextFrameNumber(&frameNr);
|
getNextFrameNumber(&frameNr);
|
||||||
int iRxEntry = firstDest;
|
int iRxEntry = firstDest;
|
||||||
for (int iframes = 0; iframes != numFrames; ++iframes) {
|
for (int iframes = 0; iframes != numFrames; ++iframes) {
|
||||||
|
if (transmissionDelayUs)
|
||||||
usleep(transmissionDelayUs);
|
usleep(transmissionDelayUs);
|
||||||
|
|
||||||
// check if manual stop
|
// check if manual stop
|
||||||
|
@ -1927,6 +1927,7 @@ void *start_timer(void *arg) {
|
|||||||
getNextFrameNumber(&frameNr);
|
getNextFrameNumber(&frameNr);
|
||||||
int iRxEntry = firstDest;
|
int iRxEntry = firstDest;
|
||||||
for (int iframes = 0; iframes != numFrames; ++iframes) {
|
for (int iframes = 0; iframes != numFrames; ++iframes) {
|
||||||
|
if (transmissionDelayUs)
|
||||||
usleep(transmissionDelayUs);
|
usleep(transmissionDelayUs);
|
||||||
|
|
||||||
// check if manual stop
|
// check if manual stop
|
||||||
|
Loading…
x
Reference in New Issue
Block a user