got rid of unnecesaary handshaking for -1 in dynamic range in receiver

This commit is contained in:
Dhanya Maliakal 2016-08-15 11:15:52 +02:00
parent 1f9dc775f6
commit 597f5e5d2a

View File

@ -4569,6 +4569,8 @@ int slsDetector::setDynamicRange(int n){
//receiver
if(ret != FAIL){
retval = thisDetector->dynamicRange;
if((n==-1) && (ret!= FORCE_UPDATE)) n =-1;
if(setReceiverOnline(ONLINE_FLAG)==ONLINE_FLAG){
#ifdef VERBOSE
std::cout << "Sending/Getting dynamic range to/from receiver " << n << std::endl;