mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-28 09:10:01 +02:00
callback
This commit is contained in:
parent
d8b0a13ee2
commit
053e05628f
@ -313,7 +313,13 @@ void DataProcessor::ProcessAnImage(char* buf) {
|
|||||||
RecordFirstIndices(fnum);
|
RecordFirstIndices(fnum);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (*fileWriteEnable && *callbackAction == DO_EVERYTHING)
|
if (*callbackAction == DO_EVERYTHING) {
|
||||||
file->WriteToFile(buf, generalData->fifoBufferSize + FILE_FRAME_HEADER_SIZE, fnum-firstMeasurementIndex);
|
if (*fileWriteEnable)
|
||||||
|
file->WriteToFile(buf, generalData->fifoBufferSize + FILE_FRAME_HEADER_SIZE, fnum-firstMeasurementIndex);
|
||||||
|
} else {
|
||||||
|
if (rawDataReadyCallBack)
|
||||||
|
rawDataReadyCallBack((int)fnum, buf + FILE_FRAME_HEADER_SIZE, generalData->fifoBufferSize,
|
||||||
|
NULL, NULL, pRawDataReady);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user