fix issue with rhfe sensors

load correct INTYPE (was overridden by 0)
This commit is contained in:
2025-10-23 15:28:24 +02:00
parent 59d665c85b
commit ff14e0f792

View File

@@ -539,7 +539,7 @@ proc lsc::read_curve_inp {} {
pt100 - pt250 { set value 3 }
pt500 { set value 4 }
pt1000 - pt2500 { set value 5 }
rhfe { set value 0 ; sct intype 0,2,2,10,8 }
rhfe { set value 0,2,2,10,8 }
c { set value 7 }
cernox { set value 8 }
ruox { set value 9 }
@@ -1474,6 +1474,12 @@ proc lsc::updateMean {chan stat} {
sct datar_$chan ""
if {$n == 0} return
}
set fake_stat [silent 0 sct fake_stat_$chan]
if {$fake_stat} {
set stat $fake_stat
clientlog "fake_stat_$chan $stat"
sct fake_stat_$chan 0
}
set sensor [sct channel_$chan]
if {$stat == 0 || $stat == 2} { # invalid reading is triggered for unknown reasons
updateval $sensor $mean