send_command: Remove indirect path to parameter

The child at inner_param's childpath to the root parameter... is just
inner_param itself.
This commit is contained in:
atse 2024-08-14 12:58:58 +08:00
parent d57cc9ef2a
commit dd83daa5d9
1 changed files with 2 additions and 2 deletions

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]