diff --git a/slsDetectorSoftware/src/CallerSpecial.cpp b/slsDetectorSoftware/src/CallerSpecial.cpp index 174c51276..10330f1b6 100644 --- a/slsDetectorSoftware/src/CallerSpecial.cpp +++ b/slsDetectorSoftware/src/CallerSpecial.cpp @@ -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'; - } + auto t = det->getRxROI(det_id); + os << ToString(t) << '\n'; } else if (action == defs::PUT_ACTION) { std::vector rois; // Support multiple args with bracketed ROIs, or single arg with