Patch to avoid floating point error of temperature

A more complete system of dealing with floating point imprecision on the
way.
This commit is contained in:
atse 2023-10-03 17:42:31 +08:00
parent 6005caf8b7
commit fe6901d35f

View File

@ -792,7 +792,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
self.params[channel].child("PID Config", "Ki").setValue(settings["parameters"]["ki"])
self.params[channel].child("PID Config", "Kd").setValue(settings["parameters"]["kd"])
self.params[channel].child("Output Config", "Control Method", "Set Temperature").setValue(settings["target"])
self.channel_graphs[channel].t_line.setValue(settings["target"])
self.channel_graphs[channel].t_line.setValue(round(settings["target"], 6))
@pyqtSlot(list)
def update_report(self, report_data):