gap pixels should be allowed to set to 0 for other detectors

This commit is contained in:
Dhanya Maliakal 2017-11-20 09:43:41 +01:00
parent 662f502d4c
commit 97260510f2

View File

@ -2446,12 +2446,10 @@ int slsReceiverTCPIPInterface::enable_gap_pixels() {
if (mySock->ReceiveDataOnly(&enable,sizeof(enable)) < 0 )
return printSocketReadError();
if (myDetectorType != EIGER)
functionNotImplemented();
// execute action
#ifdef SLS_RECEIVER_UDP_FUNCTIONS
else {
if (receiverBase == NULL)
invalidReceiverObject();
else {
@ -2462,6 +2460,9 @@ int slsReceiverTCPIPInterface::enable_gap_pixels() {
else if (receiverBase->getStatus() != IDLE)
receiverNotIdle();
else {
if ((myDetectorType != EIGER) && (enable > 0))
functionNotImplemented();
else
receiverBase->setGapPixelsEnable(enable);
}
}
@ -2473,7 +2474,6 @@ int slsReceiverTCPIPInterface::enable_gap_pixels() {
FILE_LOG(logERROR) << "Warning: " << mess;
}
}
}
#endif
#ifdef VERYVERBOSE
FILE_LOG(logDEBUG1) << "Activate: " << retval;