forked from M-Labs/thermostat
Don't set_param that much
This commit is contained in:
parent
72956e19ee
commit
c9e8c4f4a1
@ -628,13 +628,14 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
|||||||
return
|
return
|
||||||
for thermostat_param in inner_param.opts["param"]:
|
for thermostat_param in inner_param.opts["param"]:
|
||||||
if len(thermostat_param) == 4: # To tack on prefixes to the data
|
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':
|
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':
|
elif inner_param.name() == 'Control Method':
|
||||||
await self.client.set_param(*thermostat_param)
|
set_param_args = thermostat_param
|
||||||
else:
|
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):
|
def _set_param_tree(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user