succd: add hysteresis for high pressure safety interlock

This commit is contained in:
Serge Bazanski 2024-09-28 07:36:02 +02:00
parent 239a5c40cc
commit 776f7a9911

View file

@ -154,7 +154,7 @@ func (d *daemon) processOnce(_ context.Context) error {
d.safety.highPressure = true
klog.Errorf("Pressure is too high; enabling diffusion pump lockout")
}
} else {
} else if mbar < (1e-1)-(1e-2) {
if d.safety.highPressure {
d.safety.highPressure = false
klog.Infof("Pressure is low enough for diffusion pump operation; quitting diffusion pump lockout")