mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-20 16:48:01 +02:00
in between
This commit is contained in:
@ -370,6 +370,7 @@ int slsReceiverTCPIPInterface::set_detector_type(){
|
||||
}
|
||||
if(ret != FAIL){
|
||||
#ifndef REST
|
||||
if(receiverBase) delete receiverBase;
|
||||
receiverBase = UDPInterface::create("standard");
|
||||
if(startAcquisitionCallBack)
|
||||
receiverBase->registerCallBackStartAcquisition(startAcquisitionCallBack,pStartAcquisition);
|
||||
@ -998,6 +999,10 @@ int slsReceiverTCPIPInterface::reset_frames_caught(){
|
||||
strcpy(mess,SET_RECEIVER_ERR_MESSAGE);
|
||||
ret=FAIL;
|
||||
}
|
||||
else if(receiverBase->getStatus()==RUNNING){
|
||||
strcpy(mess,"Cannot reset frames caught while status is running\n");
|
||||
ret=FAIL;
|
||||
}
|
||||
else
|
||||
receiverBase->resetAcquisitionCount();
|
||||
}
|
||||
|
Reference in New Issue
Block a user