Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions LambdaApp/src/ADLambda.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,6 @@ void ADLambda::acquireThread(int index)
NDArray* output;

this->lock();
epicsTimeStamp currentTime = epicsTime::getCurrent();

// If there's not an NDArray stored for this frame_no, create one
if (this->hasDecoder)
Expand All @@ -740,8 +739,7 @@ void ADLambda::acquireThread(int index)
output->uniqueId = frame_no;
output->getInfo(&info);

output->timeStamp = currentTime.secPastEpoch + currentTime.nsec / ONE_BILLION;
updateTimeStamp(&(output->epicsTS));
updateTimeStamps(output);

memset((char*) output->pData, 0, imagedims_output[0] * imagedims_output[1] * info.bytesPerElement);

Expand All @@ -752,8 +750,8 @@ void ADLambda::acquireThread(int index)
NDArray* new_frame = pNDArrayPool->alloc(2, imagedims_output, (NDDataType_t) datatype, 0, NULL);
new_frame->uniqueId = 0;
new_frame->getInfo(&info);
new_frame->timeStamp = currentTime.secPastEpoch + currentTime.nsec / ONE_BILLION;
updateTimeStamp(&(new_frame->epicsTS));
new_frame->timeStamp = new_frame->epicsTS.secPastEpoch + new_frame->epicsTS.nsec / ONE_BILLION;

memset((char*) new_frame->pData, 0, imagedims_output[0] * imagedims_output[1] * info.bytesPerElement);

Expand Down