diff --git a/andorApp/src/andorCCD.cpp b/andorApp/src/andorCCD.cpp index 9eb18e9..cc9344d 100755 --- a/andorApp/src/andorCCD.cpp +++ b/andorApp/src/andorCCD.cpp @@ -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(temperature) < minTemp) { setDoubleParam(ADTemperature, minTemp); - } else if (static_cast(temperature) < maxTemp) { + } else if (static_cast(temperature) > maxTemp) { setDoubleParam(ADTemperature, maxTemp); } else { setDoubleParam(ADTemperature, temperature);