other replacements for string

This commit is contained in:
Erik Frojdh
2020-03-19 12:39:42 +01:00
parent dee0aea378
commit 9a6f521f6a
4 changed files with 28 additions and 7 deletions

View File

@ -1814,7 +1814,7 @@ std::string CmdProxy::PatternWaitTime(int action) {
if (args.size() != 1) {
WrongNumberOfParameters(1);
}
det->setPatternWaitTime(level, std::stoul(args[0]), {det_id});
det->setPatternWaitTime(level, StringTo<uint64_t>(args[0]), {det_id});
os << args.front() << '\n';
} else {
throw sls::RuntimeError("Unknown action");