From 8c1c696f646fa781a1c1815f20324f49b555fe34 Mon Sep 17 00:00:00 2001 From: Erik Frojdh Date: Mon, 6 Jul 2020 09:43:10 +0200 Subject: [PATCH] no scan at module level --- slsDetectorSoftware/src/CmdProxy.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/slsDetectorSoftware/src/CmdProxy.cpp b/slsDetectorSoftware/src/CmdProxy.cpp index 6a92d6648..332b600ba 100644 --- a/slsDetectorSoftware/src/CmdProxy.cpp +++ b/slsDetectorSoftware/src/CmdProxy.cpp @@ -1010,6 +1010,10 @@ std::string CmdProxy::Scan(int action) { auto t = det->getScan(); os << OutString(t) << '\n'; } else if (action == defs::PUT_ACTION) { + if (det_id != -1) { + throw sls::RuntimeError( + "Cannot configure scan at module level"); + } // disable if (args.size() == 1) { if (StringTo(args[0]) != 0) {