if timer gives -1 in multi, it should not multiply answer with 1e-9 to get in seconds in slsdetectorocmmand

This commit is contained in:
Dhanya Maliakal 2017-08-04 14:09:56 +02:00
parent 37dd32f1b0
commit 96ce9ed7c1

View File

@ -4343,7 +4343,7 @@ string slsDetectorCommand::cmdTimer(int narg, char *args[], int action) {
myDet->setReceiverOnline(ONLINE_FLAG);
ret=myDet->setTimer(index,t);
if (index==ACQUISITION_TIME || index==SUBFRAME_ACQUISITION_TIME || index==FRAME_PERIOD || index==DELAY_AFTER_TRIGGER)
if ((ret!=-1) && (index==ACQUISITION_TIME || index==SUBFRAME_ACQUISITION_TIME || index==FRAME_PERIOD || index==DELAY_AFTER_TRIGGER))
rval=(double)ret*1E-9;
else rval=ret;