fix hfflow config
+ ccu4: make unused valves invisible
This commit is contained in:
@ -382,12 +382,19 @@ proc stdConfig::ccu4 {{title CCU4} args} {
|
||||
node ax upd
|
||||
node axs upd
|
||||
node axd upd -int
|
||||
} elseif {$a eq "valve"} {
|
||||
} elseif {[string match valve* $a]} {
|
||||
set nvalve [string range $a 5 end]
|
||||
for {set ch 1} {$ch <= 12} {incr ch} {
|
||||
node v$ch upd
|
||||
prop enum valve_off,valve_on,no_valve,timeout,timeout1,boost
|
||||
if {$ch > $nvalve} {
|
||||
prop visible false
|
||||
}
|
||||
node vc$ch out -int
|
||||
prop enum valve_off,valve_on
|
||||
if {$ch > $nvalve} {
|
||||
prop visible false
|
||||
}
|
||||
}
|
||||
} elseif {$a ne "multiHe"} {
|
||||
error "ERROR: unknown argument '$a' to ccu4"
|
||||
|
Reference in New Issue
Block a user