mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-11 04:17:15 +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();
|
||||
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) {
|
||||
|
Reference in New Issue
Block a user