diff --git a/andorEmccd/andorEmccd.py b/andorEmccd/andorEmccd.py index 7575b06..b4b6513 100755 --- a/andorEmccd/andorEmccd.py +++ b/andorEmccd/andorEmccd.py @@ -30,6 +30,7 @@ class LibInstance: 20024: "DRV_NO_NEW_DATA", 20034: "DRV_TEMPERATURE_OFF", 20035: "DRV_TEMP_NOT_STABILIZED", + 20036: "DRV_TEMPERATURE_STABILIZED", 20037: "DRV_TEMPERATURE_NOT_REACHED", 20066: "DRV_P1INVALID", 20067: "DRV_P2INVALID", @@ -84,7 +85,11 @@ def get_temperature(): ret = dll.GetTemperature(ctypes.byref(t)) if self.return_codes.get(ret, "UNKNOWN") == "DRV_TEMPERATURE_OFF": return None - err_check(ret, ["DRV_SUCCESS", "DRV_TEMPERATURE_NOT_REACHED", "DRV_TEMP_NOT_STABILIZED"]) + err_check(ret, [ + "DRV_SUCCESS", + "DRV_TEMPERATURE_NOT_REACHED", + "DRV_TEMP_NOT_STABILIZED", + "DRV_TEMPERATURE_STABILIZED"]) return t.value self.get_temperature = get_temperature