mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-28 09:10:01 +02:00
swapping ret when sending and then checking it to to send mess doesnt work. fixed
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@767 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
parent
204a71c51a
commit
636fb54ec7
Binary file not shown.
@ -147,9 +147,9 @@ int setDAC(enum detDacIndex ind, int val, int imod){
|
|||||||
string iname;
|
string iname;
|
||||||
float v = val/0.001;
|
float v = val/0.001;
|
||||||
if(!eiger->GetDACName((unsigned int) ind,iname)) return -1;
|
if(!eiger->GetDACName((unsigned int) ind,iname)) return -1;
|
||||||
#ifdef VERBOSE
|
//#ifdef VERBOSE
|
||||||
printf("Setting dac %d: %s to %d mV\n",ind, iname.c_str(),val);
|
printf("Setting dac %d: %s to %d mV\n",ind, iname.c_str(),val);
|
||||||
#endif
|
//#endif
|
||||||
if(val>=0) eiger->SetDAC(iname,v);
|
if(val>=0) eiger->SetDAC(iname,v);
|
||||||
|
|
||||||
if(!eiger->GetDAC(iname,v)) v=-1;
|
if(!eiger->GetDAC(iname,v)) v=-1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user