bug fixes for tests

This commit is contained in:
2019-10-22 15:46:28 +02:00
parent 45012df95b
commit 8006043a97
6 changed files with 111 additions and 70 deletions

View File

@ -789,7 +789,7 @@ std::string CmdProxy::TemperatureEvent(int action) {
if (args.size() != 1) {
WrongNumberOfParameters(1);
}
if (std::stoi(args[1]) != 0) {
if (std::stoi(args[0]) != 0) {
throw sls::RuntimeError("Unknown argument for temp event. Did you mean 0 to reset event?");
}
det->resetTemperatureEvent();