Fixed logic from < to >

This commit is contained in:
Tom Trafford
2020-03-20 09:29:25 +00:00
parent 1b58f21f6d
commit 5d3277e549

View File

@@ -254,7 +254,7 @@ AndorCCD::AndorCCD(const char *portName, const char *installPath, int cameraSeri
printf("%s:%s: current temperature is %f\n", driverName, functionName, temperature);
if (static_cast<int>(temperature) < minTemp) {
setDoubleParam(ADTemperature, minTemp);
} else if (static_cast<int>(temperature) < maxTemp) {
} else if (static_cast<int>(temperature) > maxTemp) {
setDoubleParam(ADTemperature, maxTemp);
} else {
setDoubleParam(ADTemperature, temperature);