fixes to amor oven supporting PWM/direct switch
This commit is contained in:
@@ -22,6 +22,9 @@ proc stdConfig::amoroven {} {
|
||||
|
||||
node tlimit par 700
|
||||
node tlimit_without_vacuum par 320
|
||||
|
||||
node plimit par 75
|
||||
node plimit_without_vacuum par 5
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,13 +36,16 @@ proc amoroven::read_press {} {
|
||||
proc amoroven::update_limit {vacuumon} {
|
||||
if {$vacuumon} {
|
||||
set tlim [hval [sct parent]/tlimit]
|
||||
set plim [hval [sct parent]/plimit]
|
||||
set msg ""
|
||||
} else {
|
||||
set tlim [hval [sct parent]/tlimit_without_vacuum]
|
||||
set plim [hval [sct parent]/plimit_without_vacuum]
|
||||
set msg " vacuum pump off"
|
||||
}
|
||||
if {$tlim != [result tt set/limit] || [silent "" hgetpropval /tt/set tlimit_message] ne $msg} {
|
||||
if {$tlim != [result tt set/limit] || $plim != [result tt set/maxpower] || [silent "" hgetpropval /tt/set tlimit_message] ne $msg} {
|
||||
tt set/limit $tlim
|
||||
tt set/maxpower $plim
|
||||
hsetprop /tt/set tlimit_message $msg
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user