dont add detector id for .trim

This commit is contained in:
Erik Frojdh 2021-04-27 08:28:05 +02:00
parent c054ad3af3
commit 085ea3aee7

View File

@ -412,7 +412,7 @@ void Module::loadSettingsFile(const std::string &fname) {
if (shm()->myDetectorType == MYTHEN3) {
serialNumberWidth = 4;
}
if (fname.find(".sn") == std::string::npos) {
if ((fname.find(".sn") == std::string::npos) && (fname.find(".trim") == std::string::npos)) {
ostfn << ".sn" << std::setfill('0') << std::setw(serialNumberWidth)
<< std::dec << getSerialNumber();
}