Remove unneccessary redirection

The child at inner_param's childpath to the root parameter... is just
inner_param.
This commit is contained in:
atse 2024-07-17 17:14:12 +08:00
parent bbd6774c75
commit fad9008707

View File

@ -281,9 +281,9 @@ class MainWindow(QtWidgets.QMainWindow):
set_param_args = (*thermostat_param[:2], "off") set_param_args = (*thermostat_param[:2], "off")
else: else:
set_param_args = (*thermostat_param, new_value) 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) 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: if "pid_autotune" in inner_param.opts:
autotuner_param = inner_param.opts["pid_autotune"][0] autotuner_param = inner_param.opts["pid_autotune"][0]