succd: add additional safety interlocks

This commit is contained in:
zdmx 2024-09-27 22:29:56 +02:00
parent f7752922c2
commit d3391b28ec
3 changed files with 66 additions and 3 deletions

View file

@ -31,6 +31,7 @@ func main() {
}
d.aboveRough.threshold = float64(flagPressureThresholdRough)
d.aboveHigh.threshold = float64(flagPressureThresholdHigh)
d.lastPressures = newRingbuffer()
if flagFake {
klog.Infof("Starting with fake peripherals")
d.adcPirani = &fakeADC{}