mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-16 06:29:21 +01:00
so that the first image shows
This commit is contained in:
@@ -348,6 +348,9 @@ void DataProcessor::ProcessAnImage(char* buf) {
|
|||||||
if (*dataStreamEnable) {
|
if (*dataStreamEnable) {
|
||||||
//restart timer
|
//restart timer
|
||||||
clock_gettime(CLOCK_REALTIME, &timerBegin);
|
clock_gettime(CLOCK_REALTIME, &timerBegin);
|
||||||
|
timerBegin.tv_sec -= (*streamingTimerInMs) / 1000;
|
||||||
|
timerBegin.tv_nsec -= ((*streamingTimerInMs) % 1000) * 1000000;
|
||||||
|
|
||||||
//to send first image
|
//to send first image
|
||||||
currentFreqCount = *streamingFrequency;
|
currentFreqCount = *streamingFrequency;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user