mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 21:07:13 +02:00
fixed daclist setter
This commit is contained in:
@ -2104,7 +2104,7 @@ defs::dacIndex Detector::decodeNamedDac(const std::string &name) {
|
||||
std::string Detector::decodeNamedDac(defs::dacIndex i) {
|
||||
auto names = getDacNames();
|
||||
auto index = static_cast<size_t>(i);
|
||||
if (index > names.size())
|
||||
if (index >= names.size())
|
||||
throw RuntimeError("Dac index out of range");
|
||||
return names[index];
|
||||
}
|
||||
|
Reference in New Issue
Block a user