mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-26 08:10:02 +02:00
get detector and receiver status only when necessary for stopacquisition
This commit is contained in:
parent
40a7b3983a
commit
8c123982d2
@ -4104,10 +4104,16 @@ int slsDetector::startAcquisition(){
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
int slsDetector::stopAcquisition(){
|
||||
|
||||
runStatus s = getRunStatus();
|
||||
runStatus r = getReceiverStatus();
|
||||
// get status before stopping acquisition
|
||||
runStatus s = ERROR, r = ERROR;
|
||||
if (thisDetector->receiver_upstream) {
|
||||
s = getRunStatus();
|
||||
r = getReceiverStatus();
|
||||
}
|
||||
|
||||
int fnum=F_STOP_ACQUISITION;
|
||||
int ret=FAIL;
|
||||
@ -4131,6 +4137,7 @@ int slsDetector::stopAcquisition(){
|
||||
}
|
||||
thisDetector->stoppedFlag=1;
|
||||
|
||||
// if rxr streaming and acquisition finished, restream dummy stop packet
|
||||
if ((thisDetector->receiver_upstream) && (s == IDLE) && (r == IDLE)) {
|
||||
restreamStopFromReceiver();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user