Raise exception when temps >= limit

This commit is contained in:
2Shirt 2019-02-05 21:06:40 -07:00
parent f8404f3c16
commit 3c35a75c92
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -237,7 +237,7 @@ def update_sensor_data(sensor_data, thermal_threshold=None):
# Check if thermal limit reached
if thermal_threshold and _section == 'CoreTemps':
if max(_data['Current'], _data['Max']) > thermal_threshold:
if max(_data['Current'], _data['Max']) >= thermal_threshold:
raise ThermalError('CoreTemps above threshold')