forked from M-Labs/thermostat
ctrl_panel: Appropriate units for measured current
Allow the readonly display of current to vary its SI prefix in the unit, since as a display entry it won't have the unit adjustment problem.
This commit is contained in:
parent
ef7dbf9b5e
commit
d96d36fb0c
|
@ -160,9 +160,7 @@ class CtrlPanel(QObject):
|
|||
settings["temperature"]
|
||||
)
|
||||
if settings["tec_i"] is not None:
|
||||
self.params[channel].child("tec_i").setValue(
|
||||
settings["tec_i"] * 1000
|
||||
)
|
||||
self.params[channel].child("tec_i").setValue(settings["tec_i"])
|
||||
|
||||
@pyqtSlot("QVariantList")
|
||||
def update_thermistor(self, sh_data):
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
"name": "tec_i",
|
||||
"title": "Current through TEC",
|
||||
"type": "float",
|
||||
"suffix": "mA",
|
||||
"siPrefix": true,
|
||||
"suffix": "A",
|
||||
"decimals": 6,
|
||||
"readonly": true,
|
||||
"tip": "The measured current through the TEC"
|
||||
|
|
Loading…
Reference in New Issue