mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 12:57:13 +02:00
no scan at module level
This commit is contained in:
@ -1010,6 +1010,10 @@ std::string CmdProxy::Scan(int action) {
|
|||||||
auto t = det->getScan();
|
auto t = det->getScan();
|
||||||
os << OutString(t) << '\n';
|
os << OutString(t) << '\n';
|
||||||
} else if (action == defs::PUT_ACTION) {
|
} else if (action == defs::PUT_ACTION) {
|
||||||
|
if (det_id != -1) {
|
||||||
|
throw sls::RuntimeError(
|
||||||
|
"Cannot configure scan at module level");
|
||||||
|
}
|
||||||
// disable
|
// disable
|
||||||
if (args.size() == 1) {
|
if (args.size() == 1) {
|
||||||
if (StringTo<int>(args[0]) != 0) {
|
if (StringTo<int>(args[0]) != 0) {
|
||||||
|
Reference in New Issue
Block a user