refactor cmd parsing (detid can be parsed directly)

This commit is contained in:
2025-07-01 17:00:59 +02:00
parent 274a338520
commit f8a06d78f3

View File

@ -753,13 +753,8 @@ std::string Caller::rx_roi(int action) {
if (!args.empty()) {
WrongNumberOfParameters(0);
}
if (det_id != -1) {
auto t = det->getRxROI(det_id);
os << ToString(t) << '\n';
} else {
auto t = det->getRxROI();
os << ToString(t) << '\n';
}
} else if (action == defs::PUT_ACTION) {
std::vector<defs::ROI> rois;
// Support multiple args with bracketed ROIs, or single arg with