Use the selected sensor (external or bath) to report temperature from a Julabo
This commit is contained in:
@@ -18,7 +18,8 @@ namespace eval ::scobj::lh45 {
|
|||||||
if [hpropexists [sct] geterror] {
|
if [hpropexists [sct] geterror] {
|
||||||
hdelprop [sct] geterror
|
hdelprop [sct] geterror
|
||||||
}
|
}
|
||||||
sct send [sct tempsensor]
|
set tempcmd [sct tempsensor]
|
||||||
|
sct send $tempcmd
|
||||||
return $nextState
|
return $nextState
|
||||||
}
|
}
|
||||||
proc setValue {nextState cmd} {
|
proc setValue {nextState cmd} {
|
||||||
@@ -280,7 +281,7 @@ namespace eval ::scobj::lh45 {
|
|||||||
hfactory $scobj_hpath/sensor/value plain internal float
|
hfactory $scobj_hpath/sensor/value plain internal float
|
||||||
# Default to bath temperature sensor
|
# Default to bath temperature sensor
|
||||||
hsetprop $scobj_hpath/sensor/value tempsensor "in_pv_00"
|
hsetprop $scobj_hpath/sensor/value tempsensor "in_pv_00"
|
||||||
hsetprop $scobj_hpath/sensor/value read ${ns}::getValue rdValue {[sct tempsensor]}
|
hsetprop $scobj_hpath/sensor/value read ${ns}::getTemp rdValue
|
||||||
hsetprop $scobj_hpath/sensor/value rdValue ${ns}::rdValue "double"
|
hsetprop $scobj_hpath/sensor/value rdValue ${ns}::rdValue "double"
|
||||||
hsetprop $scobj_hpath/sensor/value oldval UNKNOWN
|
hsetprop $scobj_hpath/sensor/value oldval UNKNOWN
|
||||||
hsetprop $scobj_hpath/sensor/value units "C"
|
hsetprop $scobj_hpath/sensor/value units "C"
|
||||||
|
|||||||
Reference in New Issue
Block a user