コード例 #1
0
 public IActionResult Drain()
 {
     if (!_aquaPinController.IsFillActive && !_aquaPinController.IsDrainActive && !_aquaPinController.IsPumpActive)
     {
         _aquaPinController.Drain();
     }
     return(Ok());
 }
コード例 #2
0
 /// <summary>
 /// Manual override for the Water Change sequence
 /// </summary>
 public void WaterChange()
 {
     _waterLevelTimer.Change(Timeout.Infinite, Timeout.Infinite);
     _aquaPinController.Drain();
     _waterChangeTimer.Change(TimeSpan.Zero, _waterLevelCheckInterval);
 }