simulate mode - flow reached

This commit is contained in:
Michal Buzik 2026-04-09 12:49:00 +02:00
parent 94c7279da1
commit 65ab19290f

View File

@ -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;