forked from M-Labs/thermostat
ctrl_panel: Approriate 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
8a4d861672
commit
d844c02a3a
@ -161,7 +161,7 @@ class CtrlPanel(QObject):
|
|||||||
)
|
)
|
||||||
if settings["tec_i"] is not None:
|
if settings["tec_i"] is not None:
|
||||||
self.params[channel].child("tec_i").setValue(
|
self.params[channel].child("tec_i").setValue(
|
||||||
settings["tec_i"] * 1000
|
settings["tec_i"]
|
||||||
)
|
)
|
||||||
|
|
||||||
@pyqtSlot("QVariantList")
|
@pyqtSlot("QVariantList")
|
||||||
|
@ -12,7 +12,8 @@
|
|||||||
"name": "tec_i",
|
"name": "tec_i",
|
||||||
"title": "Current through TEC",
|
"title": "Current through TEC",
|
||||||
"type": "float",
|
"type": "float",
|
||||||
"suffix": "mA",
|
"siPrefix": true,
|
||||||
|
"suffix": "A",
|
||||||
"decimals": 6,
|
"decimals": 6,
|
||||||
"readonly": true,
|
"readonly": true,
|
||||||
"tip": "The measured current through the TEC"
|
"tip": "The measured current through the TEC"
|
||||||
|
Loading…
Reference in New Issue
Block a user