mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-17 01:53:29 +01:00
got rid of unnecesaary handshaking for -1 in dynamic range in receiver
This commit is contained in:
@@ -4569,6 +4569,8 @@ int slsDetector::setDynamicRange(int n){
|
|||||||
|
|
||||||
//receiver
|
//receiver
|
||||||
if(ret != FAIL){
|
if(ret != FAIL){
|
||||||
|
retval = thisDetector->dynamicRange;
|
||||||
|
if((n==-1) && (ret!= FORCE_UPDATE)) n =-1;
|
||||||
if(setReceiverOnline(ONLINE_FLAG)==ONLINE_FLAG){
|
if(setReceiverOnline(ONLINE_FLAG)==ONLINE_FLAG){
|
||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
std::cout << "Sending/Getting dynamic range to/from receiver " << n << std::endl;
|
std::cout << "Sending/Getting dynamic range to/from receiver " << n << std::endl;
|
||||||
|
|||||||
Reference in New Issue
Block a user