From ff14e0f79271efc574bf76926ff831dfe2077b2d Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Thu, 23 Oct 2025 15:28:24 +0200 Subject: [PATCH] fix issue with rhfe sensors load correct INTYPE (was overridden by 0) --- tcl/drivers/lsc.tcl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tcl/drivers/lsc.tcl b/tcl/drivers/lsc.tcl index ba4e26b..9f5a3a9 100644 --- a/tcl/drivers/lsc.tcl +++ b/tcl/drivers/lsc.tcl @@ -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