Both command and param

zotino-tec
atse 2023-08-29 12:11:55 +08:00
parent fc4f69aec0
commit 4caaf44f74
1 changed files with 1 additions and 1 deletions

View File

@ -627,7 +627,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
if inner_param.name() == 'Control Method' and not data:
return
await asyncio.gather(*[self.client._command(x.format(value=data)) for x in inner_param.opts["commands"]])
elif inner_param.opts.get("param", None) is not None:
if inner_param.opts.get("param", None) is not None:
await asyncio.gather(*[self.client.set_param(*x, data) for x in inner_param.opts["param"]])