to avoid confusion, moved default initialized, single sized declared vector of roi to be created at setDetectorType

This commit is contained in:
2025-07-03 10:58:44 +02:00
parent 94a9476550
commit f9d41f1d66
2 changed files with 3 additions and 5 deletions

View File

@ -156,9 +156,7 @@ void Implementation::setDetectorType(const detectorType d) {
}
// number of portrois should be equal to number of interfaces
if (d == EIGER) {
ResetRois();
}
ResetRois();
SetLocalNetworkParameters();
SetupFifoStructure();

View File

@ -309,8 +309,8 @@ class Implementation : private virtual slsDetectorDefs {
bool framePadding{true};
pid_t parentThreadId;
pid_t tcpThreadId;
std::vector<slsDetectorDefs::ROI> portRois{1};
std::vector<slsDetectorDefs::ROI> multiRoiMetadata{1};
std::vector<slsDetectorDefs::ROI> portRois;
std::vector<slsDetectorDefs::ROI> multiRoiMetadata;
// file parameters
fileFormat fileFormatType{BINARY};