fix for m3 scan with single module

This commit is contained in:
Erik Frojdh
2021-03-01 20:51:32 +01:00
parent e5c33cf04f
commit d500f62852

View File

@ -675,7 +675,7 @@ void Detector::stopReceiver() { pimpl->Parallel(&Module::stopReceiver, {}); }
void Detector::startDetector() {
auto detector_type = getDetectorType().squash();
if (detector_type == defs::MYTHEN3){
if (detector_type == defs::MYTHEN3 && size() > 1){
auto is_master = getMaster();
std::vector<int> master;
std::vector<int> slaves;