Don't set_param that much

zotino-tec
atse 2023-08-30 11:12:54 +08:00
parent 72956e19ee
commit c9e8c4f4a1
1 changed files with 5 additions and 4 deletions

View File

@ -628,13 +628,14 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
return
for thermostat_param in inner_param.opts["param"]:
if len(thermostat_param) == 4: # To tack on prefixes to the data
await self.client.set_param(*thermostat_param[:3], f"{thermostat_param[3]}{data}")
set_param_args = (*thermostat_param[:3], f'{thermostat_param[3]}{data}')
elif inner_param.name() == 'Postfilter Rate':
await self.client.set_param(*thermostat_param, *data)
set_param_args = (*thermostat_param, *data)
elif inner_param.name() == 'Control Method':
await self.client.set_param(*thermostat_param)
set_param_args = thermostat_param
else:
await self.client.set_param(*thermostat_param, data)
set_param_args = (*thermostat_param, data)
await self.client.set_param(*set_param_args)
def _set_param_tree(self):