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,33 +2446,33 @@ 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
|
||||||
|
if (receiverBase == NULL)
|
||||||
|
invalidReceiverObject();
|
||||||
else {
|
else {
|
||||||
if (receiverBase == NULL)
|
// set
|
||||||
invalidReceiverObject();
|
if(enable >= 0) {
|
||||||
else {
|
if (mySock->differentClients && lockStatus)
|
||||||
// set
|
receiverlocked();
|
||||||
if(enable >= 0) {
|
else if (receiverBase->getStatus() != IDLE)
|
||||||
if (mySock->differentClients && lockStatus)
|
receiverNotIdle();
|
||||||
receiverlocked();
|
else {
|
||||||
else if (receiverBase->getStatus() != IDLE)
|
if ((myDetectorType != EIGER) && (enable > 0))
|
||||||
receiverNotIdle();
|
functionNotImplemented();
|
||||||
else {
|
else
|
||||||
receiverBase->setGapPixelsEnable(enable);
|
receiverBase->setGapPixelsEnable(enable);
|
||||||
}
|
|
||||||
}
|
|
||||||
//get
|
|
||||||
retval = receiverBase->getGapPixelsEnable();
|
|
||||||
if(enable >= 0 && retval != enable){
|
|
||||||
ret = FAIL;
|
|
||||||
sprintf(mess,"Could not set gap pixels to %d, returned %d\n",enable,retval);
|
|
||||||
FILE_LOG(logERROR) << "Warning: " << mess;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//get
|
||||||
|
retval = receiverBase->getGapPixelsEnable();
|
||||||
|
if(enable >= 0 && retval != enable){
|
||||||
|
ret = FAIL;
|
||||||
|
sprintf(mess,"Could not set gap pixels to %d, returned %d\n",enable,retval);
|
||||||
|
FILE_LOG(logERROR) << "Warning: " << mess;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef VERYVERBOSE
|
#ifdef VERYVERBOSE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user