simulate mode - flow reached
This commit is contained in:
parent
94c7279da1
commit
65ab19290f
@ -3,6 +3,7 @@
|
||||
///
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Common;
|
||||
using log4net;
|
||||
using Config.Entities;
|
||||
using TBF.Rig.ControlBoard.Uni;
|
||||
@ -200,6 +201,11 @@ namespace TBF.Rig.Uni.RegValve
|
||||
public Event Run()
|
||||
{
|
||||
log.DebugFormat("Op.Run() opState={0}", opState);
|
||||
|
||||
if (this.uniCB?.DebugLevel == DebugMode.Simulate)
|
||||
{
|
||||
return Event.FlowReached;
|
||||
}
|
||||
|
||||
if (StateMachine.Time > expireTime) return Event.RegulValveTimeOut;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user