fix hfflow config

+ ccu4: make unused valves invisible
This commit is contained in:
l_samenv
2023-05-24 11:46:56 +02:00
parent 4791ae8693
commit 366ad2d560
2 changed files with 18 additions and 7 deletions

View File

@ -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"