mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-05-12 15:32:13 +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 multiSlsDetector::checkOnline() {
|
||||||
string retval1 = "",retval;
|
string offlineDetectors = "";
|
||||||
for (int idet=0; idet<thisMultiDetector->numberOfDetectors; ++idet) {
|
for (int idet=0; idet<thisMultiDetector->numberOfDetectors; ++idet) {
|
||||||
if (detectors[idet]) {
|
if (detectors[idet]) {
|
||||||
retval=detectors[idet]->checkOnline();
|
string tmp = detectors[idet]->checkOnline();
|
||||||
if(!retval.empty()){
|
if(!tmp.empty())
|
||||||
retval1.append(retval);
|
offlineDetectors += tmp + "+";
|
||||||
retval1.append("+");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return offlineDetectors;
|
||||||
}
|
}
|
||||||
return retval1;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int multiSlsDetector::activate(int const enable){
|
int multiSlsDetector::activate(int const enable){
|
||||||
int i;
|
int i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user