diff --git a/gui/control_main.py b/gui/control_main.py index bcb9de38..404c5f71 100644 --- a/gui/control_main.py +++ b/gui/control_main.py @@ -2076,7 +2076,7 @@ def processGripTemp(self, gripVal): gripValKelvin = gripVal + 273.15 gripValMaxKelvin = 103.15 # -170 in degC self.gripperTempLabel.setText("%.1f" % gripValKelvin) - if int(gripVal) > gripValMaxKelvin: + if gripValKelvin > gripValMaxKelvin: self.gripperTempLabel.setStyleSheet("background-color: red;") else: self.gripperTempLabel.setStyleSheet("background-color: #99FF66;")