mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-26 16:20:03 +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(){
|
int slsDetector::stopAcquisition(){
|
||||||
|
|
||||||
runStatus s = getRunStatus();
|
// get status before stopping acquisition
|
||||||
runStatus r = getReceiverStatus();
|
runStatus s = ERROR, r = ERROR;
|
||||||
|
if (thisDetector->receiver_upstream) {
|
||||||
|
s = getRunStatus();
|
||||||
|
r = getReceiverStatus();
|
||||||
|
}
|
||||||
|
|
||||||
int fnum=F_STOP_ACQUISITION;
|
int fnum=F_STOP_ACQUISITION;
|
||||||
int ret=FAIL;
|
int ret=FAIL;
|
||||||
@ -4131,6 +4137,7 @@ int slsDetector::stopAcquisition(){
|
|||||||
}
|
}
|
||||||
thisDetector->stoppedFlag=1;
|
thisDetector->stoppedFlag=1;
|
||||||
|
|
||||||
|
// if rxr streaming and acquisition finished, restream dummy stop packet
|
||||||
if ((thisDetector->receiver_upstream) && (s == IDLE) && (r == IDLE)) {
|
if ((thisDetector->receiver_upstream) && (s == IDLE) && (r == IDLE)) {
|
||||||
restreamStopFromReceiver();
|
restreamStopFromReceiver();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user