Use the selected sensor (external or bath) to report temperature from a Julabo

This commit is contained in:
Ferdi Franceschini
2013-08-15 08:03:34 +10:00
parent 5acb398b42
commit 564b7c9bd5

View File

@@ -18,7 +18,8 @@ namespace eval ::scobj::lh45 {
if [hpropexists [sct] geterror] {
hdelprop [sct] geterror
}
sct send [sct tempsensor]
set tempcmd [sct tempsensor]
sct send $tempcmd
return $nextState
}
proc setValue {nextState cmd} {
@@ -280,7 +281,7 @@ namespace eval ::scobj::lh45 {
hfactory $scobj_hpath/sensor/value plain internal float
# Default to bath temperature sensor
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 oldval UNKNOWN
hsetprop $scobj_hpath/sensor/value units "C"