mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-07-13 19:31:49 +02:00
refactor cmd parsing (detid can be parsed directly)
This commit is contained in:
@ -753,13 +753,8 @@ std::string Caller::rx_roi(int action) {
|
|||||||
if (!args.empty()) {
|
if (!args.empty()) {
|
||||||
WrongNumberOfParameters(0);
|
WrongNumberOfParameters(0);
|
||||||
}
|
}
|
||||||
if (det_id != -1) {
|
auto t = det->getRxROI(det_id);
|
||||||
auto t = det->getRxROI(det_id);
|
os << ToString(t) << '\n';
|
||||||
os << ToString(t) << '\n';
|
|
||||||
} else {
|
|
||||||
auto t = det->getRxROI();
|
|
||||||
os << ToString(t) << '\n';
|
|
||||||
}
|
|
||||||
} else if (action == defs::PUT_ACTION) {
|
} else if (action == defs::PUT_ACTION) {
|
||||||
std::vector<defs::ROI> rois;
|
std::vector<defs::ROI> rois;
|
||||||
// Support multiple args with bracketed ROIs, or single arg with
|
// Support multiple args with bracketed ROIs, or single arg with
|
||||||
|
Reference in New Issue
Block a user