Commit 08f3c368 authored by Boudhayan Gupta's avatar Boudhayan Gupta

HAP: Only turn on fan when activating if off

parent 0487d3ec
Pipeline #155726191 passed with stage
in 1 minute and 14 seconds
......@@ -51,7 +51,10 @@ func NewCryogenHAPService(theDriver CoolerDriver) *CryogenHAPService {
lSvc.mDriver.SetPumpState(false)
lSvc.mDriver.SetSwingState(false)
} else {
lSvc.mDriver.SetFanState(High)
if lSvc.mDriver.GetFanState() == Off {
lSvc.mDriver.SetFanState(High)
}
}
})
lSvc.AddCharacteristic(lSvc.Active.Characteristic)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment