fix bug in parameter verification

pull/135/head
Michael Zanetti 2014-06-24 23:58:03 +02:00
parent 4e35d912cc
commit a0af88c248
1 changed files with 1 additions and 1 deletions

View File

@ -906,7 +906,7 @@ QPair<DeviceManager::DeviceError, QString> DeviceManager::verifyParam(const Para
return report(DeviceManager::DeviceErrorInvalidParameter, QString("Value out of range for param %1. Got: %2. Max: %3.")
.arg(param.name()).arg(param.value().toString()).arg(paramType.maxValue().toString()));
}
if (paramType.minValue().isValid() && param.value() < paramType.maxValue()) {
if (paramType.minValue().isValid() && param.value() < paramType.minValue()) {
return report(DeviceManager::DeviceErrorInvalidParameter, QString("Value out of range for param %1. Got: %2. Min: %3.")
.arg(param.name()).arg(param.value().toString()).arg(paramType.minValue().toString()));
}