Merge branch '2403-det-stop-bug' into 'main'
Cancel data acquisition not working when detector waits for TTL trigger See merge request jungfraujoch/nextgendcu!33
This commit is contained in:
@@ -139,7 +139,7 @@ void DetectorWrapper::InternalStop() {
|
||||
auto state = GetState();
|
||||
if (state == DetectorState::ERROR)
|
||||
throw JFJochException(JFJochExceptionCategory::Detector, "Detector in error state");
|
||||
else if (state == DetectorState::BUSY) {
|
||||
else if ((state == DetectorState::BUSY) || (state == DetectorState::WAITING)) {
|
||||
try {
|
||||
det.stopDetector();
|
||||
} catch (...) {
|
||||
|
||||
Reference in New Issue
Block a user