succd: add hysteresis for high pressure safety interlock
This commit is contained in:
parent
239a5c40cc
commit
776f7a9911
|
@ -154,7 +154,7 @@ func (d *daemon) processOnce(_ context.Context) error {
|
||||||
d.safety.highPressure = true
|
d.safety.highPressure = true
|
||||||
klog.Errorf("Pressure is too high; enabling diffusion pump lockout")
|
klog.Errorf("Pressure is too high; enabling diffusion pump lockout")
|
||||||
}
|
}
|
||||||
} else {
|
} else if mbar < (1e-1)-(1e-2) {
|
||||||
if d.safety.highPressure {
|
if d.safety.highPressure {
|
||||||
d.safety.highPressure = false
|
d.safety.highPressure = false
|
||||||
klog.Infof("Pressure is low enough for diffusion pump operation; quitting diffusion pump lockout")
|
klog.Infof("Pressure is low enough for diffusion pump operation; quitting diffusion pump lockout")
|
||||||
|
|
Loading…
Reference in a new issue