can get individual rois, but not connected to command yet
All checks were successful
Build on RHEL9 / build (push) Successful in 2m50s
Build on RHEL8 / build (push) Successful in 4m50s

This commit is contained in:
2025-06-18 17:55:20 +02:00
parent 8dd9165078
commit aac3f8904b
9 changed files with 64 additions and 79 deletions

View File

@@ -739,14 +739,7 @@ std::string Caller::rx_roi(int action) {
throw RuntimeError("Cannot execute receiver ROI at module level");
} else {
auto t = det->getRxROI();
// os << ToString(t) << '\n';
for (const auto &r : t) {
os << r << ';';
}
if (!t.empty()) {
os.seekp(-1, std::ios_base::end); // remove trailing ;
}
os << '\n';
os << ToString(t) << '\n';
}
} else if (action == defs::PUT_ACTION) {
std::vector<defs::ROI> rois;
@@ -789,14 +782,7 @@ std::string Caller::rx_roi(int action) {
}
det->setRxROI(rois);
// os << ToString(rois) << '\n';
for (const auto &r : rois) {
os << r << ';';
}
//if (!rois.empty()) {
// os.seekp(-1, std::ios_base::end); // remove trailing ;
//}
os << '\n';
os << ToString(rois) << '\n';
} else {
throw RuntimeError("Unknown action");
}