From 87f84412d8bcd6e310ed15ae1ab897fd289e071b Mon Sep 17 00:00:00 2001 From: lxw Date: Wed, 29 May 2024 15:11:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E8=BE=86=E8=BF=9E=E6=8E=A5=E8=AF=AD?= =?UTF-8?q?=E9=9F=B3=E6=92=AD=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/Execute/Step/CarPrepareState.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Service/Execute/Step/CarPrepareState.cs b/Service/Execute/Step/CarPrepareState.cs index 8abec6e..1ba6495 100644 --- a/Service/Execute/Step/CarPrepareState.cs +++ b/Service/Execute/Step/CarPrepareState.cs @@ -184,7 +184,7 @@ public class CarPrepareState : IState /// public InvokeStatus CheckTBoxConnectFlag(SwappingStateMachine machine) { - return Invoker.Invoke("check TBox connect", 1000, 20, machine.IsCanceled, + return Invoker.Invoke("check TBox connect", 1000, 100, machine.IsCanceled, () => machine.BoxConnectFlag, () => { Task result = TBoxApi.IsConnected(); @@ -193,13 +193,14 @@ public class CarPrepareState : IState { machine.BoxConnectFlag = true; } - }, () => { machine.ExceptionReason = ExceptionReason.ConnTBoxError; }, false, () => + }, () => { machine.ExceptionReason = ExceptionReason.ConnTBoxError; + SoundTool.PlayOneSound((int)InfoEnum.SwapInfo.ErrorTBoxConn);}, false, () => { machine.ExceptionReason = ExceptionReason.ConnTBoxError; // machine.LedTool?.WriteProgramContent(InfoEnum.SwapInfo.ErrorTBoxConn.GetLed()); - SoundTool.PlayOneSound((int)InfoEnum.SwapInfo.ErrorTBoxConn); + } - , 10, InvokeStatus.None); + , 30, InvokeStatus.None); }