no scan at module level

This commit is contained in:
Erik Frojdh
2020-07-06 09:43:10 +02:00
parent 39bbc5c688
commit 8c1c696f64

View File

@ -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<int>(args[0]) != 0) {