GUI: Refactor send_command #4

Merged
linuswck merged 6 commits from gui_dev-refactor-send_command into gui_dev 2024-10-07 13:03:38 +08:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit dd83daa5d9 - Show all commits

View File

@ -279,9 +279,9 @@ class MainWindow(QtWidgets.QMainWindow):
set_param_args = (*thermostat_param[:2], "off")
else:
set_param_args = (*thermostat_param, new_value)
param.child(*param.childPath(inner_param)).setOpts(lock=True)
inner_param.setOpts(lock=True)
await self.client.set_param(*set_param_args)
param.child(*param.childPath(inner_param)).setOpts(lock=False)
inner_param.setOpts(lock=False)
if "pid_autotune" in inner_param.opts:
auto_tuner_param = inner_param.opts["pid_autotune"][0]