车辆连接语音播报

master
lxw 6 months ago
parent 1eba6b331b
commit 87f84412d8

@ -184,7 +184,7 @@ public class CarPrepareState : IState
/// <returns></returns> /// <returns></returns>
public InvokeStatus CheckTBoxConnectFlag(SwappingStateMachine machine) 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, () => () => machine.BoxConnectFlag, () =>
{ {
Task<bool> result = TBoxApi.IsConnected(); Task<bool> result = TBoxApi.IsConnected();
@ -193,13 +193,14 @@ public class CarPrepareState : IState
{ {
machine.BoxConnectFlag = true; machine.BoxConnectFlag = true;
} }
}, () => { machine.ExceptionReason = ExceptionReason.ConnTBoxError; }, false, () => }, () => { machine.ExceptionReason = ExceptionReason.ConnTBoxError;
SoundTool.PlayOneSound((int)InfoEnum.SwapInfo.ErrorTBoxConn);}, false, () =>
{ {
machine.ExceptionReason = ExceptionReason.ConnTBoxError; machine.ExceptionReason = ExceptionReason.ConnTBoxError;
// machine.LedTool?.WriteProgramContent(InfoEnum.SwapInfo.ErrorTBoxConn.GetLed()); // machine.LedTool?.WriteProgramContent(InfoEnum.SwapInfo.ErrorTBoxConn.GetLed());
SoundTool.PlayOneSound((int)InfoEnum.SwapInfo.ErrorTBoxConn);
} }
, 10, InvokeStatus.None); , 30, InvokeStatus.None);
} }

Loading…
Cancel
Save