forked from M-Labs/thermostat
Use siPrefix for displaying measured current
Won't have the unit adjustment problem
This commit is contained in:
parent
e6edfea81d
commit
2952df46ac
@ -161,7 +161,7 @@ class CtrlPanel(QObject):
|
||||
)
|
||||
if settings["tec_i"] is not None:
|
||||
self.params[channel].child("current").setValue(
|
||||
settings["tec_i"] * 1000
|
||||
settings["tec_i"]
|
||||
)
|
||||
|
||||
@pyqtSlot("QVariantList")
|
||||
|
@ -11,7 +11,8 @@
|
||||
"name":"current",
|
||||
"title":"Current through TEC",
|
||||
"type":"float",
|
||||
"suffix":"mA",
|
||||
"siPrefix":true,
|
||||
"suffix":"A",
|
||||
"decimals":6,
|
||||
"readonly":true
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user