Merge pull request #40 from dls-controls/fix/temperatureControl

Fixed logic from < to >
This commit is contained in:
Mark Rivers
2020-03-20 06:44:02 -05:00
committed by GitHub
+1 -1
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);