Skip to content

Commit 7c281f8

Browse files
dstoccosawenzel
authored andcommitted
Correctly read masks written in hexadecimal format
1 parent 6da61f5 commit 7c281f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Detectors/MUON/MID/Raw/src/CrateMasks.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ bool CrateMasks::load(const char* filename)
9494
std::getline(ss, token, ' ');
9595
uint16_t feeId = std::atoi(token.c_str());
9696
std::getline(ss, token, ' ');
97-
uint8_t mask = std::atoi(token.c_str());
97+
uint8_t mask = static_cast<uint8_t>(std::strtol(token.c_str(), nullptr, 16));
9898
mActiveBoards[feeId] = mask;
9999
}
100100
inFile.close();

0 commit comments

Comments
 (0)