mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-05-11 15:20:01 +02:00
modify string name in multi checkOnline
This commit is contained in:
parent
1dfdcfcb7e
commit
183c306166
@ -1144,20 +1144,16 @@ int multiSlsDetector::setOnline(int off) {
|
||||
|
||||
|
||||
string multiSlsDetector::checkOnline() {
|
||||
string retval1 = "",retval;
|
||||
string offlineDetectors = "";
|
||||
for (int idet=0; idet<thisMultiDetector->numberOfDetectors; ++idet) {
|
||||
if (detectors[idet]) {
|
||||
retval=detectors[idet]->checkOnline();
|
||||
if(!retval.empty()){
|
||||
retval1.append(retval);
|
||||
retval1.append("+");
|
||||
}
|
||||
string tmp = detectors[idet]->checkOnline();
|
||||
if(!tmp.empty())
|
||||
offlineDetectors += tmp + "+";
|
||||
}
|
||||
}
|
||||
return retval1;
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
return offlineDetectors;
|
||||
}
|
||||
|
||||
int multiSlsDetector::activate(int const enable){
|
||||
int i;
|
||||
|
Loading…
x
Reference in New Issue
Block a user