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:
2024-03-08 18:17:12 +01:00

View File

@@ -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 (...) {