Don't set_param that much

This commit is contained in:
atse 2023-08-30 11:12:54 +08:00
parent 72956e19ee
commit c9e8c4f4a1

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):