mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-28 17:10:03 +02:00
gap pixels should be allowed to set to 0 for other detectors
This commit is contained in:
parent
662f502d4c
commit
97260510f2
@ -2446,12 +2446,10 @@ int slsReceiverTCPIPInterface::enable_gap_pixels() {
|
|||||||
if (mySock->ReceiveDataOnly(&enable,sizeof(enable)) < 0 )
|
if (mySock->ReceiveDataOnly(&enable,sizeof(enable)) < 0 )
|
||||||
return printSocketReadError();
|
return printSocketReadError();
|
||||||
|
|
||||||
if (myDetectorType != EIGER)
|
|
||||||
functionNotImplemented();
|
|
||||||
|
|
||||||
// execute action
|
// execute action
|
||||||
#ifdef SLS_RECEIVER_UDP_FUNCTIONS
|
#ifdef SLS_RECEIVER_UDP_FUNCTIONS
|
||||||
else {
|
|
||||||
if (receiverBase == NULL)
|
if (receiverBase == NULL)
|
||||||
invalidReceiverObject();
|
invalidReceiverObject();
|
||||||
else {
|
else {
|
||||||
@ -2462,6 +2460,9 @@ int slsReceiverTCPIPInterface::enable_gap_pixels() {
|
|||||||
else if (receiverBase->getStatus() != IDLE)
|
else if (receiverBase->getStatus() != IDLE)
|
||||||
receiverNotIdle();
|
receiverNotIdle();
|
||||||
else {
|
else {
|
||||||
|
if ((myDetectorType != EIGER) && (enable > 0))
|
||||||
|
functionNotImplemented();
|
||||||
|
else
|
||||||
receiverBase->setGapPixelsEnable(enable);
|
receiverBase->setGapPixelsEnable(enable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2473,7 +2474,6 @@ int slsReceiverTCPIPInterface::enable_gap_pixels() {
|
|||||||
FILE_LOG(logERROR) << "Warning: " << mess;
|
FILE_LOG(logERROR) << "Warning: " << mess;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef VERYVERBOSE
|
#ifdef VERYVERBOSE
|
||||||
FILE_LOG(logDEBUG1) << "Activate: " << retval;
|
FILE_LOG(logDEBUG1) << "Activate: " << retval;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user