Commit 53387cb3 authored by 潘栩锋's avatar 潘栩锋 🚴

修复 AD盒.B2 SetOutPorts 不使用BuildMultiTrans。 之前提示多线程操作异常。

parent 2908173d
...@@ -896,14 +896,9 @@ namespace FlyADBase ...@@ -896,14 +896,9 @@ namespace FlyADBase
/// <param name="enable"></param> /// <param name="enable"></param>
public void SetOutput(UInt16 mask, UInt16 enable) public void SetOutput(UInt16 mask, UInt16 enable)
{ {
#if ENABLE_MULTI_TRANS core.SetOutPorts(mask, enable, (asyncContext, retData) => {
core.BuildMultiTrans(() =>{
#endif
core.SetOutPorts(mask, enable, null, null);
GetOut(); GetOut();
#if ENABLE_MULTI_TRANS }, null);
});
#endif
} }
#region 速度参数 #region 速度参数
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment