Fix incorrect variable

This commit is contained in:
roger530-ho 2023-04-13 10:18:26 +00:00
parent 2a96a94a29
commit c64e3841a4
No known key found for this signature in database
GPG Key ID: 9BFB0185DB2A8016

View File

@ -266,7 +266,7 @@ class Thermal(PddfThermal):
A float number, the maximum recorded temperature of thermal in Celsius
up to nearest thousandth of one degree Celsius, e.g. 30.125
"""
if self.min_temperature is None:
if self.max_temperature is None:
self.get_temperature()
return self.max_temperature