mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-14 05:47:14 +02:00
handling start acq call back exception
This commit is contained in:
@ -497,10 +497,15 @@ void Implementation::startReceiver() {
|
||||
|
||||
// callbacks
|
||||
if (startAcquisitionCallBack) {
|
||||
startAcquisitionCallBack(filePath, fileName, fileIndex,
|
||||
(generalData->imageSize) +
|
||||
(generalData->fifoBufferHeaderSize),
|
||||
pStartAcquisition);
|
||||
try {
|
||||
startAcquisitionCallBack(filePath, fileName, fileIndex,
|
||||
(generalData->imageSize) +
|
||||
(generalData->fifoBufferHeaderSize),
|
||||
pStartAcquisition);
|
||||
} catch (const std::exception &e) {
|
||||
throw sls::RuntimeError("Start Acquisition Callback Error: " +
|
||||
std::string(e.what()));
|
||||
}
|
||||
if (rawDataReadyCallBack != nullptr) {
|
||||
LOG(logINFO) << "Data Write has been defined externally";
|
||||
}
|
||||
|
Reference in New Issue
Block a user