mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-16 18:31:31 +01:00
dont usleep if no transmission delay (#1101)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user