ctb: gui call back fix

This commit is contained in:
2020-03-05 11:31:36 +01:00
parent e3f9ef0b25
commit dec4d00fbf

View File

@ -365,9 +365,11 @@ int DetectorImpl::createReceivingDataSockets(const bool destroy) {
FILE_LOG(logINFO) << "Destroyed Receiving Data Socket(s)"; FILE_LOG(logINFO) << "Destroyed Receiving Data Socket(s)";
return OK; return OK;
} }
if (client_downstream) {
return OK;
}
FILE_LOG(logINFO) << "Going to create data sockets"; FILE_LOG(logINFO) << "Going to create data sockets";
size_t numSockets = detectors.size(); size_t numSockets = detectors.size();
size_t numSocketsPerDetector = 1; size_t numSocketsPerDetector = 1;
if (multi_shm()->multiDetectorType == EIGER) { if (multi_shm()->multiDetectorType == EIGER) {
@ -557,7 +559,9 @@ void DetectorImpl::readFrameFromReceiver() {
uint32_t yoffset = coordY * nPixelsY; uint32_t yoffset = coordY * nPixelsY;
uint32_t singledetrowoffset = nPixelsX * bytesPerPixel; uint32_t singledetrowoffset = nPixelsX * bytesPerPixel;
uint32_t rowoffset = nX * singledetrowoffset; uint32_t rowoffset = nX * singledetrowoffset;
if (multi_shm()->multiDetectorType == CHIPTESTBOARD) {
singledetrowoffset = size;
}
FILE_LOG(logDEBUG1) FILE_LOG(logDEBUG1)
<< "Multi Image Info:" << "Multi Image Info:"
"\n\txoffset: " "\n\txoffset: "